Closed jvelo closed 9 years ago
I agree with this feature, however the API should be based on class instantiation and we should provide 3 ways to create an endpoint. These classes should be stored in a namespace, as expected by #10:
new Ajax\Endpoint($action, $handler, $isPrivate = false);
new Ajax\PrivateEndpoint($action, $handler);
new Ajax\PublicEndpoint($action, $handler);
A first version could be :
WDYT ?