mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-08 12:36:36 +08:00
* Update sections panel * Add deletion confirm and unify buttons * Align notebook title * Fix whitespace shrinking in the editor * Update session deletion route
27 lines
762 B
Elixir
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
|