commit
6e8cf9b660
1 changed files with 8 additions and 8 deletions
|
@ -36,6 +36,14 @@ defmodule ChiyaWeb.Router do
|
|||
get "/admin/notes", ApiController, :notes
|
||||
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
|
||||
if Application.compile_env(:chiya, :dev_routes) do
|
||||
# If you want to use the LiveDashboard in production, you should put
|
||||
|
@ -117,14 +125,6 @@ defmodule ChiyaWeb.Router do
|
|||
end
|
||||
end
|
||||
|
||||
## Indie routes
|
||||
scope "/indie", ChiyaWeb.Indie do
|
||||
forward "/micropub",
|
||||
PlugMicropub,
|
||||
handler: MicropubHandler,
|
||||
json_encoder: Jason
|
||||
end
|
||||
|
||||
## Public routes
|
||||
|
||||
scope "/", ChiyaWeb do
|
||||
|
|
Loading…
Reference in a new issue