forked from mihawk/rebar_cb_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchicagoboss.routes
23 lines (19 loc) · 1.03 KB
/
chicagoboss.routes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% Routes file.
% Formats:
% {"/some/route", [{controller, "Controller"}, {action, "Action"}]}.
% {"/some/route", [{controller, "Controller"}, {action, "Action"}, {id, "42"}]}.
% {"/(some|any)/route/(\\d+)", [{controller, '$1'}, {action, "Action"}, {id, '$2'}]}.
% {"/some/route/(?<route_id>\\d+)", [{controller, "Controller"}, {action, "Action"}, {id, '$route_id'}]}.
% {"/some/route", [{application, some_app}, {controller, "Controller"}, {action, "Action"}, {id, "42"}]}.
%
% {404, [{controller, "Controller"}, {action, "Action"}]}.
% {404, [{controller, "Controller"}, {action, "Action"}, {id, "42"}]}.
% {404, [{application, some_app}, {controller, "Controller"}, {action, "Action"}, {id, "42"}]}.
%
% Note that routing across applications results in a 302 redirect.
% Front page
% {"/", [{controller, "world"}, {action, "hello"}]}.
% 404 File Not Found handler
% {404, [{controller, "world"}, {action, "lost"}]}.
% 500 Internal Error handler (only invoked in production)
% {500, [{controller, "world"}, {action, "calamity"}]}.