arouter

Prolog files

arouter.pl
new_route/3Registers a new method-specific route handler.
new_route/4Registers a new method-specific route handler.
path_to_route/2Turns path atom like '/path/to/something' into a Prolog term path/to/something.
route/1Routes the request into an handler.
route/4Retrieves currently registered routes.
route_del/2Registers a new DELETE route handler.
route_del/3Registers a new DELETE route handler.
route_get/2Registers a new GET route handler.
route_get/3Registers a new GET route handler.
route_post/2Registers a new POST route handler.
route_post/3Registers a new POST route handler.
route_put/2Registers a new PUT route handler.
route_put/3Registers a new PUT route handler.
route_remove/2Removes the given route.