Commit 66779d33c3e9e35bf3f609556fc1b69c2e089dc0

Thomas de Grivel 2022-04-05T16:14:47

catch-all route

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/kmxgit_web/router.ex b/lib/kmxgit_web/router.ex
index 4050573..3cdb313 100644
--- a/lib/kmxgit_web/router.ex
+++ b/lib/kmxgit_web/router.ex
@@ -162,6 +162,7 @@ end
     pipe_through [:browser]
     get "/:slug", SlugController, :show
     get "/:owner/*slug", RepositoryController, :show
+    match :*, "/*path", PageController, :not_found
   end
 
   if Mix.env() != :dev do