Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix formatting

+21 -21
+21 -21
lib/sower_web/router.ex
··· 3 3 use Plug.ErrorHandler 4 4 5 5 pipeline :browser do 6 - plug(:accepts, ["html"]) 7 - plug(:fetch_session) 8 - plug(:fetch_live_flash) 9 - plug(:put_root_layout, html: {SowerWeb.Layouts, :root}) 10 - plug(:protect_from_forgery) 11 - plug(:put_secure_browser_headers) 6 + plug :accepts, ["html"] 7 + plug :fetch_session 8 + plug :fetch_live_flash 9 + plug :put_root_layout, html: {SowerWeb.Layouts, :root} 10 + plug :protect_from_forgery 11 + plug :put_secure_browser_headers 12 12 end 13 13 14 14 pipeline :api do 15 - plug(:accepts, ["json"]) 15 + plug :accepts, ["json"] 16 16 end 17 17 18 18 scope "/", SowerWeb do 19 - pipe_through(:browser) 19 + pipe_through :browser 20 20 21 21 get "/", PageController, :home 22 22 23 - live("/seeds", SeedLive.Index, :index) 24 - live("/seeds/:id", SeedLive.Show, :show) 25 - live("/trees", TreeLive.Index, :index) 26 - live("/trees/:id", TreeLive.Show, :show) 27 - live("/inputs/repos", RepositoryLive.Index, :index) 28 - live("/inputs/repos/:id", RepositoryLive.Show, :show) 23 + live "/seeds", SeedLive.Index, :index 24 + live "/seeds/:id", SeedLive.Show, :show 25 + live "/trees", TreeLive.Index, :index 26 + live "/trees/:id", TreeLive.Show, :show 27 + live "/inputs/repos", RepositoryLive.Index, :index 28 + live "/inputs/repos/:id", RepositoryLive.Show, :show 29 29 end 30 30 31 31 scope "/api" do 32 - pipe_through(:api) 33 - get("/seeds", SowerWeb.SeedController, :list) 34 - get("/seeds/latest", SowerWeb.SeedController, :find_latest) 35 - post("/seeds", SowerWeb.SeedController, :new) 32 + pipe_through :api 33 + get "/seeds", SowerWeb.SeedController, :list 34 + get "/seeds/latest", SowerWeb.SeedController, :find_latest 35 + post "/seeds", SowerWeb.SeedController, :new 36 36 37 37 forward "/json/doc", 38 38 Redoc.Plug.RedocUI, ··· 51 51 import Phoenix.LiveDashboard.Router 52 52 53 53 scope "/dev" do 54 - pipe_through(:browser) 54 + pipe_through :browser 55 55 56 - live_dashboard("/dashboard", metrics: SowerWeb.Telemetry) 57 - forward("/mailbox", Plug.Swoosh.MailboxPreview) 56 + live_dashboard "/dashboard", metrics: SowerWeb.Telemetry 57 + forward "/mailbox", Plug.Swoosh.MailboxPreview 58 58 end 59 59 end 60 60