fix namespace stuff

This commit is contained in:
Inhji 2023-05-31 21:56:42 +02:00
parent f0265155f0
commit 3a4b82e12e

View file

@ -36,6 +36,14 @@ defmodule ChiyaWeb.Router do
get "/admin/notes", ApiController, :notes get "/admin/notes", ApiController, :notes
end end
## Indie routes
scope "/indie" do
forward "/micropub",
PlugMicropub,
handler: ChiyaWeb.Indie.MicropubHandler,
json_encoder: Jason
end
# Enable LiveDashboard and Swoosh mailbox preview in development # Enable LiveDashboard and Swoosh mailbox preview in development
if Application.compile_env(:chiya, :dev_routes) do if Application.compile_env(:chiya, :dev_routes) do
# If you want to use the LiveDashboard in production, you should put # If you want to use the LiveDashboard in production, you should put
@ -117,14 +125,6 @@ defmodule ChiyaWeb.Router do
end end
end end
## Indie routes
scope "/indie", ChiyaWeb.Indie do
forward "/micropub",
PlugMicropub,
handler: MicropubHandler,
json_encoder: Jason
end
## Public routes ## Public routes
scope "/", ChiyaWeb do scope "/", ChiyaWeb do