forked from potsda.mn/mobilizon
fix: actually route /events/calendar
This commit is contained in:
parent
5095749157
commit
81948b45ca
|
@ -18,6 +18,8 @@ defmodule Mobilizon.Web.PageController do
|
||||||
defdelegate my_events(conn, params), to: PageController, as: :index
|
defdelegate my_events(conn, params), to: PageController, as: :index
|
||||||
@spec create_event(Plug.Conn.t(), any) :: Plug.Conn.t()
|
@spec create_event(Plug.Conn.t(), any) :: Plug.Conn.t()
|
||||||
defdelegate create_event(conn, params), to: PageController, as: :index
|
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()
|
@spec list_events(Plug.Conn.t(), any) :: Plug.Conn.t()
|
||||||
defdelegate list_events(conn, params), to: PageController, as: :index
|
defdelegate list_events(conn, params), to: PageController, as: :index
|
||||||
@spec edit_event(Plug.Conn.t(), any) :: Plug.Conn.t()
|
@spec edit_event(Plug.Conn.t(), any) :: Plug.Conn.t()
|
||||||
|
|
|
@ -120,6 +120,7 @@ defmodule Mobilizon.Web.Router do
|
||||||
get("/@:name", PageController, :actor)
|
get("/@:name", PageController, :actor)
|
||||||
get("/events/me", PageController, :my_events)
|
get("/events/me", PageController, :my_events)
|
||||||
get("/events/create", PageController, :create_event)
|
get("/events/create", PageController, :create_event)
|
||||||
|
get("/events/calendar", PageController, :calendar)
|
||||||
get("/events/:uuid", PageController, :event)
|
get("/events/:uuid", PageController, :event)
|
||||||
get("/comments/:uuid", PageController, :comment)
|
get("/comments/:uuid", PageController, :comment)
|
||||||
get("/resource/:uuid", PageController, :resource)
|
get("/resource/:uuid", PageController, :resource)
|
||||||
|
|
Loading…
Reference in a new issue