Current section
Files
Jump to
Current section
Files
lib/plato_web/router.ex
defmodule PlatoWeb.Router do
use Phoenix.Router
pipeline :browser do
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:fetch_flash)
plug(:put_root_layout, html: {PlatoWeb.Layouts, :root})
end
scope "/", PlatoWeb do
pipe_through(:browser)
get("/", SchemaController, :index)
get("/schemas/:id", SchemaController, :show)
get("/content", ContentController, :index)
get("/content/new", ContentController, :new)
post("/content", ContentController, :create)
get("/content/:id", ContentController, :show)
get("/content/:id/edit", ContentController, :edit)
post("/content/:id/update", ContentController, :update)
end
end