2024-09-04 10:12:36 +02:00
|
|
|
defmodule Mse25Web.Router do
|
|
|
|
|
use Mse25Web, :router
|
|
|
|
|
|
|
|
|
|
pipeline :browser do
|
|
|
|
|
plug :accepts, ["html"]
|
|
|
|
|
plug :fetch_session
|
|
|
|
|
plug :fetch_live_flash
|
|
|
|
|
plug :put_root_layout, html: {Mse25Web.Layouts, :root}
|
|
|
|
|
plug :protect_from_forgery
|
|
|
|
|
plug :put_secure_browser_headers
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
pipeline :api do
|
|
|
|
|
plug :accepts, ["json"]
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
scope "/", Mse25Web do
|
|
|
|
|
pipe_through :browser
|
|
|
|
|
|
|
|
|
|
get "/", PageController, :home
|
2024-10-03 22:52:40 +02:00
|
|
|
get "/evenemang", PageController, :events
|
2024-10-03 09:38:07 +02:00
|
|
|
get "/webblogg", PageController, :articles
|
2024-10-03 14:38:56 +02:00
|
|
|
get "/delningar", PageController, :links
|
2024-10-05 00:36:03 +02:00
|
|
|
get "/sok", PageController, :search
|
2024-09-06 22:41:12 +02:00
|
|
|
|
2024-10-03 22:52:40 +02:00
|
|
|
# get "/kommande-evenemang.ics", EventController, :calendar
|
|
|
|
|
# get "/event-map.js", EventController, :interactive_map
|
2024-09-06 22:41:12 +02:00
|
|
|
# get "/prenumerera.xml", TimelineController, :feed
|
2024-10-03 22:52:40 +02:00
|
|
|
|
2024-09-06 22:41:12 +02:00
|
|
|
get "/*path", ItemController, :index
|
2024-09-04 10:12:36 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Other scopes may use custom stacks.
|
|
|
|
|
# scope "/api", Mse25Web do
|
|
|
|
|
# pipe_through :api
|
|
|
|
|
# end
|
|
|
|
|
end
|