1 defmodule TechRadarEditor.Router do
2 use TechRadarEditor.Web, :router
5 plug :accepts, ["html"]
8 plug :protect_from_forgery
9 plug :put_secure_browser_headers
13 plug :accepts, ["json"]
16 scope "/", TechRadarEditor do
17 pipe_through :browser # Use the default browser stack
19 # get "/", PageController, :index
20 # get "/radar", RadarController, :index
22 # get "/original", PageController, :index
23 # get "/", RadarController, :index
24 # post "/", RadarController, :create # ????
26 resources "/", RadarController, only: [:index, :create, :delete]
29 scope "/admin", TechRadarEditor do
31 resources "/radar_data_point", RadarDataPointController
34 # Other scopes may use custom stacks.
35 # scope "/api", TechRadarEditor do