From 81948b45cab1bb4417e09b3565536c2c6ddeeb08 Mon Sep 17 00:00:00 2001 From: 778a69cd <778a69cd@potsda.mn> Date: Mon, 11 Dec 2023 00:30:39 +0100 Subject: [PATCH] fix: actually route /events/calendar --- lib/web/controllers/page_controller.ex | 2 ++ lib/web/router.ex | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/web/controllers/page_controller.ex b/lib/web/controllers/page_controller.ex index 104097c20..6d5f11f5d 100644 --- a/lib/web/controllers/page_controller.ex +++ b/lib/web/controllers/page_controller.ex @@ -18,6 +18,8 @@ defmodule Mobilizon.Web.PageController do defdelegate my_events(conn, params), to: PageController, as: :index @spec create_event(Plug.Conn.t(), any) :: Plug.Conn.t() defdelegate create_event(conn, params), to: PageController, as: :index + @spec calendar(Plug.Conn.t(), any) :: Plug.Conn.t() + defdelegate calendar(conn, params), to: PageController, as: :index @spec list_events(Plug.Conn.t(), any) :: Plug.Conn.t() defdelegate list_events(conn, params), to: PageController, as: :index @spec edit_event(Plug.Conn.t(), any) :: Plug.Conn.t() diff --git a/lib/web/router.ex b/lib/web/router.ex index 9a1534e88..771aaa7d7 100644 --- a/lib/web/router.ex +++ b/lib/web/router.ex @@ -120,6 +120,7 @@ defmodule Mobilizon.Web.Router do get("/@:name", PageController, :actor) get("/events/me", PageController, :my_events) get("/events/create", PageController, :create_event) + get("/events/calendar", PageController, :calendar) get("/events/:uuid", PageController, :event) get("/comments/:uuid", PageController, :comment) get("/resource/:uuid", PageController, :resource)