I working with Luracast Restler API frame work and cannot figure out how to specify a default behavior for the root directory. For example:
webroot/user – will invoke the class User method get() by default
webroot/ – return a 404
Is there a catch all class/method for the base path?
Creating default class and default action to map it as the root
on your
index.php(gateway)This makes Say as the default class, mapped to the root
Next on your API class (Say) define an
indexmethod, it can also be agetmethodthen calling
will return
Hello World!