chore: added more @spec
This commit is contained in:
@@ -6,23 +6,23 @@ defmodule BDS.Desktop.Router do
|
||||
import Phoenix.LiveView.Router
|
||||
|
||||
pipeline :browser do
|
||||
plug :accepts, ["html"]
|
||||
plug :fetch_session
|
||||
plug :fetch_live_flash
|
||||
plug :put_root_layout, html: {BDS.Desktop.Layouts, :root}
|
||||
plug :protect_from_forgery
|
||||
plug :put_secure_browser_headers
|
||||
plug(:accepts, ["html"])
|
||||
plug(:fetch_session)
|
||||
plug(:fetch_live_flash)
|
||||
plug(:put_root_layout, html: {BDS.Desktop.Layouts, :root})
|
||||
plug(:protect_from_forgery)
|
||||
plug(:put_secure_browser_headers)
|
||||
end
|
||||
|
||||
scope "/", BDS.Desktop do
|
||||
pipe_through :browser
|
||||
pipe_through(:browser)
|
||||
|
||||
get "/health", HealthController, :show
|
||||
get "/media-thumbnail/:media_id", MediaController, :thumbnail
|
||||
get("/health", HealthController, :show)
|
||||
get("/media-thumbnail/:media_id", MediaController, :thumbnail)
|
||||
|
||||
live_session :desktop_shell,
|
||||
root_layout: {BDS.Desktop.Layouts, :root} do
|
||||
live "/", ShellLive, :index
|
||||
live("/", ShellLive, :index)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user