livebook/lib/livebook_web/router.ex
Jonatan Kłosko 0983a9df77
Add confirmation for session deletion (#117)
* Update sections panel

* Add deletion confirm and unify buttons

* Align notebook title

* Fix whitespace shrinking in the editor

* Update session deletion route
2021-03-25 17:39:18 +01:00

27 lines
762 B
Elixir

defmodule LivebookWeb.Router do
use LivebookWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {LivebookWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", LivebookWeb do
pipe_through :browser
live "/", HomeLive, :page
live "/home/sessions/:session_id/delete", HomeLive, :delete_session
live "/sessions/:id", SessionLive, :page
live "/sessions/:id/shortcuts", SessionLive, :shortcuts
live "/sessions/:id/settings/:tab", SessionLive, :settings
live "/sessions/:id/cell-settings/:cell_id", SessionLive, :cell_settings
end
end