From 3a4b82e12ed277bb85d48001401b47c491d1280b Mon Sep 17 00:00:00 2001 From: Inhji Date: Wed, 31 May 2023 21:56:42 +0200 Subject: [PATCH] fix namespace stuff --- lib/chiya_web/router.ex | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/chiya_web/router.ex b/lib/chiya_web/router.ex index 5107299..e6aa06c 100644 --- a/lib/chiya_web/router.ex +++ b/lib/chiya_web/router.ex @@ -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