Skip to content

Commit f5b0663

Browse files
committed
Add basic layers
1 parent 40062e3 commit f5b0663

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/dispatcher/dispatcher.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ defmodule Dispatcher do
99
@json %{ accept: %{ json: true } }
1010
@html %{ accept: %{ html: true } }
1111

12+
layers [ :static, :services, :fall_back, :not_found ]
13+
1214
# In order to forward the 'themes' resource to the
1315
# resource service, use the following forward rule:
1416
#
@@ -19,7 +21,7 @@ defmodule Dispatcher do
1921
# Run `docker-compose restart dispatcher` after updating
2022
# this file.
2123

22-
match "/*_", %{ last_call: true } do
24+
match "/*_", %{ layer: :not_found } do
2325
send_resp( conn, 404, "Route not found. See config/dispatcher.ex" )
2426
end
2527
end

0 commit comments

Comments
 (0)