fix namespace stuff
This commit is contained in:
parent
f0265155f0
commit
3a4b82e12e
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue