Packages

Multi-surface application runtime for Elixir. One TEA module renders to terminal, browser (LiveView), SSH, and MCP (agents). 30+ widgets, flexbox + CSS grid, AI agent runtime, distributed swarm with CRDTs, time-travel debugging, session recording, sandboxed REPL, and agentic commerce.

Current section

Files

Jump to
raxol lib raxol_web router.ex
Raw

lib/raxol_web/router.ex

defmodule RaxolWeb.Router do
@moduledoc """
Router for RaxolWeb.
"""
use Phoenix.Router
import Phoenix.LiveView.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, html: {RaxolWeb.Layouts, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", RaxolWeb do
pipe_through(:browser)
live("/", DemoLive)
live("/demo", DemoLive)
live("/counter", CounterLive)
end
scope "/api", RaxolWeb do
pipe_through(:api)
# API routes would go here
end
end