Merge pull request 'devel' (#89) from devel into main

Reviewed-on: #89
This commit is contained in:
inhji 2023-05-31 21:57:46 +02:00
commit 6e8cf9b660

View file

@ -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