2026-02-18 21:23:15 +00:00
|
|
|
defmodule BerrypodWeb.Router do
|
|
|
|
|
use BerrypodWeb, :router
|
2025-12-30 12:26:26 +00:00
|
|
|
|
2026-02-18 21:23:15 +00:00
|
|
|
import BerrypodWeb.UserAuth
|
2026-02-08 17:02:21 +00:00
|
|
|
import Phoenix.LiveDashboard.Router
|
|
|
|
|
import ErrorTracker.Web.Router
|
2025-12-30 12:26:46 +00:00
|
|
|
|
2025-12-30 12:26:26 +00:00
|
|
|
pipeline :browser do
|
|
|
|
|
plug :accepts, ["html"]
|
|
|
|
|
plug :fetch_session
|
|
|
|
|
plug :fetch_live_flash
|
2026-02-18 21:23:15 +00:00
|
|
|
plug :put_root_layout, html: {BerrypodWeb.Layouts, :root}
|
2025-12-30 12:26:26 +00:00
|
|
|
plug :protect_from_forgery
|
|
|
|
|
plug :put_secure_browser_headers
|
2025-12-30 12:26:46 +00:00
|
|
|
plug :fetch_current_scope_for_user
|
2026-02-18 21:23:15 +00:00
|
|
|
plug BerrypodWeb.Plugs.CountryDetect
|
2026-02-21 00:17:23 +00:00
|
|
|
plug BerrypodWeb.Plugs.LoadTheme
|
2025-12-30 12:26:26 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
pipeline :api do
|
|
|
|
|
plug :accepts, ["json"]
|
|
|
|
|
end
|
|
|
|
|
|
2026-02-16 17:47:41 +00:00
|
|
|
# Lightweight pipeline for SVG recoloring — no session, CSRF, auth, or layout
|
|
|
|
|
pipeline :image do
|
|
|
|
|
plug :put_secure_browser_headers
|
|
|
|
|
end
|
|
|
|
|
|
add canonical URLs, robots.txt, and sitemap.xml
Canonical: all shop pages now assign og_url (reusing the existing og:url
assign), which the layout renders as <link rel="canonical">. Collection
pages strip the sort param so ?sort=price_asc doesn't create a duplicate
canonical.
robots.txt: dynamic controller disallows /admin/, /api/, /users/,
/webhooks/, /checkout/. Removed robots.txt from static_paths so it
goes through the router instead of Plug.Static.
sitemap.xml: auto-generated from all visible products + categories +
static pages, served as application/xml. 8 tests.
Also updates PROGRESS.md: marks tasks 55, 58, 59, 61, 62 as done.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 21:47:35 +00:00
|
|
|
# Minimal pipeline for robots.txt and sitemap.xml
|
|
|
|
|
pipeline :seo do
|
|
|
|
|
plug :put_secure_browser_headers
|
|
|
|
|
end
|
|
|
|
|
|
2026-01-31 22:41:15 +00:00
|
|
|
pipeline :printify_webhook do
|
2026-02-18 21:23:15 +00:00
|
|
|
plug BerrypodWeb.Plugs.VerifyPrintifyWebhook
|
2026-01-31 22:41:15 +00:00
|
|
|
end
|
|
|
|
|
|
2026-02-15 09:32:14 +00:00
|
|
|
pipeline :printful_webhook do
|
2026-02-18 21:23:15 +00:00
|
|
|
plug BerrypodWeb.Plugs.VerifyPrintfulWebhook
|
2026-02-15 09:32:14 +00:00
|
|
|
end
|
|
|
|
|
|
2026-01-17 16:19:35 +00:00
|
|
|
pipeline :shop do
|
2026-02-18 21:23:15 +00:00
|
|
|
plug :put_root_layout, html: {BerrypodWeb.Layouts, :shop_root}
|
|
|
|
|
plug BerrypodWeb.Plugs.LoadTheme
|
2026-02-22 12:50:55 +00:00
|
|
|
plug BerrypodWeb.Plugs.Analytics
|
2026-01-17 16:19:35 +00:00
|
|
|
end
|
|
|
|
|
|
2026-02-12 08:35:22 +00:00
|
|
|
pipeline :admin do
|
2026-02-18 21:23:15 +00:00
|
|
|
plug :put_root_layout, html: {BerrypodWeb.Layouts, :admin_root}
|
2026-02-20 23:53:42 +00:00
|
|
|
plug BerrypodWeb.Plugs.LoadTheme
|
2026-02-12 08:35:22 +00:00
|
|
|
end
|
|
|
|
|
|
2026-01-17 16:19:35 +00:00
|
|
|
# Public storefront (root level)
|
2026-02-18 21:23:15 +00:00
|
|
|
scope "/", BerrypodWeb do
|
2026-01-17 16:19:35 +00:00
|
|
|
pipe_through [:browser, :shop]
|
2025-12-30 12:26:26 +00:00
|
|
|
|
2026-02-11 22:58:58 +00:00
|
|
|
live_session :coming_soon,
|
2026-02-18 21:23:15 +00:00
|
|
|
layout: {BerrypodWeb.Layouts, :shop},
|
2026-02-11 22:58:58 +00:00
|
|
|
on_mount: [
|
2026-02-18 21:23:15 +00:00
|
|
|
{BerrypodWeb.ThemeHook, :mount_theme}
|
2026-02-11 22:58:58 +00:00
|
|
|
] do
|
2026-02-12 00:16:32 +00:00
|
|
|
live "/coming-soon", Shop.ComingSoon, :index
|
2026-02-11 22:58:58 +00:00
|
|
|
end
|
|
|
|
|
|
2026-02-05 22:11:16 +00:00
|
|
|
live_session :public_shop,
|
2026-02-18 21:23:15 +00:00
|
|
|
layout: {BerrypodWeb.Layouts, :shop},
|
2026-02-08 11:59:33 +00:00
|
|
|
on_mount: [
|
2026-02-18 21:23:15 +00:00
|
|
|
{BerrypodWeb.UserAuth, :mount_current_scope},
|
|
|
|
|
{BerrypodWeb.ThemeHook, :mount_theme},
|
|
|
|
|
{BerrypodWeb.ThemeHook, :require_site_live},
|
|
|
|
|
{BerrypodWeb.CartHook, :mount_cart},
|
2026-02-22 12:50:55 +00:00
|
|
|
{BerrypodWeb.SearchHook, :mount_search},
|
|
|
|
|
{BerrypodWeb.AnalyticsHook, :track}
|
2026-02-08 11:59:33 +00:00
|
|
|
] do
|
2026-02-12 00:16:32 +00:00
|
|
|
live "/", Shop.Home, :index
|
|
|
|
|
live "/about", Shop.Content, :about
|
|
|
|
|
live "/delivery", Shop.Content, :delivery
|
|
|
|
|
live "/privacy", Shop.Content, :privacy
|
|
|
|
|
live "/terms", Shop.Content, :terms
|
|
|
|
|
live "/contact", Shop.Contact, :index
|
|
|
|
|
live "/collections/:slug", Shop.Collection, :show
|
|
|
|
|
live "/products/:id", Shop.ProductShow, :show
|
|
|
|
|
live "/cart", Shop.Cart, :index
|
2026-02-24 22:56:19 +00:00
|
|
|
live "/search", Shop.Search, :index
|
2026-02-12 00:16:32 +00:00
|
|
|
live "/checkout/success", Shop.CheckoutSuccess, :show
|
2026-02-24 08:40:08 +00:00
|
|
|
live "/orders", Shop.Orders, :index
|
|
|
|
|
live "/orders/:order_number", Shop.OrderDetail, :show
|
2026-01-17 16:19:35 +00:00
|
|
|
end
|
2026-02-07 08:30:17 +00:00
|
|
|
|
|
|
|
|
# Checkout (POST — creates Stripe session and redirects)
|
|
|
|
|
post "/checkout", CheckoutController, :create
|
2026-02-24 22:56:19 +00:00
|
|
|
|
2026-02-24 23:10:15 +00:00
|
|
|
# Order lookup (no-JS fallback for contact page form)
|
|
|
|
|
post "/contact/lookup", OrderLookupController, :lookup
|
|
|
|
|
|
2026-02-24 22:56:19 +00:00
|
|
|
# Cart form actions (no-JS fallbacks for LiveView cart events)
|
|
|
|
|
post "/cart/add", CartController, :add
|
|
|
|
|
post "/cart/remove", CartController, :remove
|
|
|
|
|
post "/cart/update", CartController, :update_item
|
2026-02-24 23:14:48 +00:00
|
|
|
post "/cart/country", CartController, :update_country
|
2025-12-30 12:26:26 +00:00
|
|
|
end
|
|
|
|
|
|
2026-02-08 16:21:05 +00:00
|
|
|
# Health check (no auth, no theme loading — for load balancers and uptime monitors)
|
2026-02-18 21:23:15 +00:00
|
|
|
scope "/", BerrypodWeb do
|
2026-02-08 16:21:05 +00:00
|
|
|
pipe_through [:api]
|
|
|
|
|
|
|
|
|
|
get "/health", HealthController, :show
|
|
|
|
|
end
|
|
|
|
|
|
add canonical URLs, robots.txt, and sitemap.xml
Canonical: all shop pages now assign og_url (reusing the existing og:url
assign), which the layout renders as <link rel="canonical">. Collection
pages strip the sort param so ?sort=price_asc doesn't create a duplicate
canonical.
robots.txt: dynamic controller disallows /admin/, /api/, /users/,
/webhooks/, /checkout/. Removed robots.txt from static_paths so it
goes through the router instead of Plug.Static.
sitemap.xml: auto-generated from all visible products + categories +
static pages, served as application/xml. 8 tests.
Also updates PROGRESS.md: marks tasks 55, 58, 59, 61, 62 as done.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 21:47:35 +00:00
|
|
|
# SEO — crawlers need these without any session/auth overhead
|
|
|
|
|
scope "/", BerrypodWeb do
|
|
|
|
|
pipe_through [:seo]
|
|
|
|
|
|
|
|
|
|
get "/robots.txt", SeoController, :robots
|
|
|
|
|
get "/sitemap.xml", SeoController, :sitemap
|
|
|
|
|
end
|
|
|
|
|
|
add favicon and site icon generation from uploaded images
Upload a source image (PNG, JPEG, or SVG) and get a complete favicon
setup: PNG variants at 32, 180, 192, 512px served from DB via
FaviconController with ETag caching, SVG favicon for vector sources,
dynamic site.webmanifest, and theme-color meta tag. Theme editor gains
a site icon section with "use logo as icon" toggle, dedicated icon
upload, short name, and background colour picker.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 17:22:15 +00:00
|
|
|
# Favicon & PWA manifest — served from DB, minimal pipeline
|
|
|
|
|
scope "/", BerrypodWeb do
|
|
|
|
|
pipe_through [:seo]
|
|
|
|
|
|
|
|
|
|
get "/favicon.svg", FaviconController, :favicon_svg
|
|
|
|
|
get "/favicon-32x32.png", FaviconController, :favicon_32
|
|
|
|
|
get "/apple-touch-icon.png", FaviconController, :apple_touch_icon
|
|
|
|
|
get "/icon-192.png", FaviconController, :icon_192
|
|
|
|
|
get "/icon-512.png", FaviconController, :icon_512
|
|
|
|
|
get "/site.webmanifest", FaviconController, :webmanifest
|
|
|
|
|
end
|
|
|
|
|
|
2026-02-05 22:11:16 +00:00
|
|
|
# Cart API (session persistence for LiveView)
|
2026-02-18 21:23:15 +00:00
|
|
|
scope "/api", BerrypodWeb do
|
2026-02-05 22:11:16 +00:00
|
|
|
pipe_through [:browser]
|
|
|
|
|
|
|
|
|
|
post "/cart", CartController, :update
|
|
|
|
|
end
|
|
|
|
|
|
2026-02-16 17:47:41 +00:00
|
|
|
# SVG recoloring (dynamic — can't be pre-generated to disk)
|
2026-02-18 21:23:15 +00:00
|
|
|
scope "/images", BerrypodWeb do
|
2026-02-16 17:47:41 +00:00
|
|
|
pipe_through :image
|
2025-12-31 18:55:44 +00:00
|
|
|
|
|
|
|
|
get "/:id/recolored/:color", ImageController, :recolored_svg
|
|
|
|
|
end
|
|
|
|
|
|
2026-01-31 22:41:15 +00:00
|
|
|
# Webhook endpoints (no CSRF, signature verified)
|
2026-02-18 21:23:15 +00:00
|
|
|
scope "/webhooks", BerrypodWeb do
|
2026-01-31 22:41:15 +00:00
|
|
|
pipe_through [:api, :printify_webhook]
|
|
|
|
|
|
|
|
|
|
post "/printify", WebhookController, :printify
|
|
|
|
|
end
|
2025-12-30 12:26:26 +00:00
|
|
|
|
2026-02-18 21:23:15 +00:00
|
|
|
scope "/webhooks", BerrypodWeb do
|
2026-02-15 09:32:14 +00:00
|
|
|
pipe_through [:api, :printful_webhook]
|
|
|
|
|
|
|
|
|
|
post "/printful", WebhookController, :printful
|
|
|
|
|
end
|
|
|
|
|
|
2026-02-18 21:23:15 +00:00
|
|
|
scope "/webhooks", BerrypodWeb do
|
2026-02-07 08:30:17 +00:00
|
|
|
pipe_through [:api]
|
|
|
|
|
|
|
|
|
|
post "/stripe", StripeWebhookController, :handle
|
|
|
|
|
end
|
|
|
|
|
|
2026-02-08 17:02:21 +00:00
|
|
|
# LiveDashboard and ErrorTracker behind admin auth (available in all environments)
|
|
|
|
|
scope "/admin" do
|
|
|
|
|
pipe_through [:browser, :require_authenticated_user]
|
2025-12-30 12:26:26 +00:00
|
|
|
|
2026-02-18 21:23:15 +00:00
|
|
|
live_dashboard "/dashboard", metrics: BerrypodWeb.Telemetry
|
2026-02-08 17:02:21 +00:00
|
|
|
error_tracker_dashboard("/errors")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Dev-only routes (mailbox preview, error previews)
|
2026-02-18 21:23:15 +00:00
|
|
|
if Application.compile_env(:berrypod, :dev_routes) do
|
2025-12-30 12:26:26 +00:00
|
|
|
scope "/dev" do
|
|
|
|
|
pipe_through :browser
|
|
|
|
|
|
|
|
|
|
forward "/mailbox", Plug.Swoosh.MailboxPreview
|
2026-01-17 22:29:45 +00:00
|
|
|
|
|
|
|
|
# Preview error pages
|
2026-02-18 21:23:15 +00:00
|
|
|
get "/errors/404", BerrypodWeb.ErrorPreviewController, :not_found
|
|
|
|
|
get "/errors/500", BerrypodWeb.ErrorPreviewController, :server_error
|
2025-12-30 12:26:26 +00:00
|
|
|
end
|
|
|
|
|
end
|
2025-12-30 12:26:46 +00:00
|
|
|
|
2026-02-24 08:40:08 +00:00
|
|
|
# Order lookup verification — sets session email then redirects to /orders
|
|
|
|
|
scope "/", BerrypodWeb do
|
|
|
|
|
pipe_through [:browser]
|
|
|
|
|
|
|
|
|
|
get "/orders/verify/:token", OrderLookupController, :verify
|
add abandoned cart recovery
When a Stripe checkout session expires without payment, if the customer
entered their email, we record an AbandonedCart and schedule a single
plain-text recovery email (1h delay via Oban).
Privacy design:
- feature is off by default; shop owner opts in via admin settings
- only contacts customers who entered their email at Stripe checkout
- single email, never more (emailed_at timestamp gate)
- suppression list blocks repeat contact; one-click unsubscribe via
signed token (/unsubscribe/:token)
- records pruned after 30 days (nightly Oban cron)
- no tracking pixels, no redirected links, no HTML
Legal notes:
- custom_text added to Stripe session footer when recovery is on
- UK PECR soft opt-in; EU legitimate interests both satisfied by this design
Files:
- migration: abandoned_carts + email_suppressions tables
- schemas: AbandonedCart, EmailSuppression
- context: Orders.create_abandoned_cart, check_suppression, add_suppression,
has_recent_paid_order?, get_abandoned_cart_by_session, mark_abandoned_cart_emailed
- workers: AbandonedCartEmailWorker (checkout queue), AbandonedCartPruneWorker (cron)
- notifier: OrderNotifier.deliver_cart_recovery/3
- webhook: extended checkout.session.expired handler
- controller: UnsubscribeController, admin settings toggle
- tests: 28 new tests across context, workers, and controller
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-24 10:02:37 +00:00
|
|
|
get "/unsubscribe/:token", UnsubscribeController, :unsubscribe
|
2026-02-24 08:40:08 +00:00
|
|
|
end
|
|
|
|
|
|
add setup onboarding page, dashboard launch checklist, provider registry
- new /setup page with three-section onboarding (account, provider, payments)
- dashboard launch checklist with progress bar, go-live, dismiss
- provider registry on Provider module (single source of truth for metadata)
- payments registry for Stripe
- setup context made provider-agnostic (provider_connected, theme_customised, etc.)
- admin provider pages now fully registry-driven (no hardcoded provider names)
- auth flow: fresh installs redirect to /setup, signed_in_path respects setup state
- removed old /admin/setup wizard
- 840 tests, 0 failures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 00:34:06 +00:00
|
|
|
# Setup page — minimal live_session, no theme/cart/search hooks
|
|
|
|
|
scope "/", BerrypodWeb do
|
|
|
|
|
pipe_through [:browser]
|
|
|
|
|
|
2026-02-21 21:40:53 +00:00
|
|
|
# Token-based auto-login after setup/recovery
|
2026-02-21 10:24:26 +00:00
|
|
|
get "/setup/login/:token", SetupController, :login
|
2026-02-21 21:40:53 +00:00
|
|
|
get "/recover/login/:token", SetupController, :recover_login
|
2026-02-21 10:24:26 +00:00
|
|
|
|
add setup onboarding page, dashboard launch checklist, provider registry
- new /setup page with three-section onboarding (account, provider, payments)
- dashboard launch checklist with progress bar, go-live, dismiss
- provider registry on Provider module (single source of truth for metadata)
- payments registry for Stripe
- setup context made provider-agnostic (provider_connected, theme_customised, etc.)
- admin provider pages now fully registry-driven (no hardcoded provider names)
- auth flow: fresh installs redirect to /setup, signed_in_path respects setup state
- removed old /admin/setup wizard
- 840 tests, 0 failures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 00:34:06 +00:00
|
|
|
live_session :setup,
|
|
|
|
|
on_mount: [{BerrypodWeb.UserAuth, :mount_current_scope}] do
|
|
|
|
|
live "/setup", Setup.Onboarding, :index
|
2026-02-21 21:40:53 +00:00
|
|
|
live "/recover", Setup.Recover, :index
|
add setup onboarding page, dashboard launch checklist, provider registry
- new /setup page with three-section onboarding (account, provider, payments)
- dashboard launch checklist with progress bar, go-live, dismiss
- provider registry on Provider module (single source of truth for metadata)
- payments registry for Stripe
- setup context made provider-agnostic (provider_connected, theme_customised, etc.)
- admin provider pages now fully registry-driven (no hardcoded provider names)
- auth flow: fresh installs redirect to /setup, signed_in_path respects setup state
- removed old /admin/setup wizard
- 840 tests, 0 failures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 00:34:06 +00:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2025-12-30 12:26:46 +00:00
|
|
|
## Authentication routes
|
|
|
|
|
|
2026-02-12 08:35:22 +00:00
|
|
|
# Admin pages with sidebar layout
|
2026-02-18 21:23:15 +00:00
|
|
|
scope "/admin", BerrypodWeb do
|
2026-02-12 08:35:22 +00:00
|
|
|
pipe_through [:browser, :require_authenticated_user, :admin]
|
|
|
|
|
|
2026-02-24 09:37:45 +00:00
|
|
|
get "/analytics/export", AnalyticsExportController, :export
|
|
|
|
|
|
2026-02-12 08:35:22 +00:00
|
|
|
live_session :admin,
|
2026-02-18 21:23:15 +00:00
|
|
|
layout: {BerrypodWeb.Layouts, :admin},
|
2026-02-12 08:35:22 +00:00
|
|
|
on_mount: [
|
2026-02-18 21:23:15 +00:00
|
|
|
{BerrypodWeb.UserAuth, :require_authenticated},
|
|
|
|
|
{BerrypodWeb.AdminLayoutHook, :assign_current_path}
|
2026-02-12 08:35:22 +00:00
|
|
|
] do
|
2026-02-12 14:17:38 +00:00
|
|
|
live "/", Admin.Dashboard, :index
|
2026-02-22 12:50:55 +00:00
|
|
|
live "/analytics", Admin.Analytics, :index
|
2026-02-12 08:35:22 +00:00
|
|
|
live "/orders", Admin.Orders, :index
|
|
|
|
|
live "/orders/:id", Admin.OrderShow, :show
|
2026-02-16 08:48:51 +00:00
|
|
|
live "/products", Admin.Products, :index
|
|
|
|
|
live "/products/:id", Admin.ProductShow, :show
|
2026-02-12 08:35:22 +00:00
|
|
|
live "/providers", Admin.Providers.Index, :index
|
|
|
|
|
live "/providers/new", Admin.Providers.Form, :new
|
|
|
|
|
live "/providers/:id/edit", Admin.Providers.Form, :edit
|
|
|
|
|
live "/settings", Admin.Settings, :index
|
2026-02-21 19:29:34 +00:00
|
|
|
live "/settings/email", Admin.EmailSettings, :index
|
2026-02-26 14:14:14 +00:00
|
|
|
live "/redirects", Admin.Redirects, :index
|
2026-02-12 08:35:22 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Theme editor: admin root layout but full-screen (no sidebar)
|
|
|
|
|
live_session :admin_theme,
|
2026-02-18 21:23:15 +00:00
|
|
|
on_mount: [{BerrypodWeb.UserAuth, :require_authenticated}] do
|
2026-02-12 08:35:22 +00:00
|
|
|
live "/theme", Admin.Theme.Index, :index
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# User account settings
|
2026-02-18 21:23:15 +00:00
|
|
|
scope "/", BerrypodWeb do
|
2025-12-30 12:26:46 +00:00
|
|
|
pipe_through [:browser, :require_authenticated_user]
|
|
|
|
|
|
2026-02-12 08:35:22 +00:00
|
|
|
live_session :user_settings,
|
2026-02-18 21:23:15 +00:00
|
|
|
on_mount: [{BerrypodWeb.UserAuth, :require_authenticated}] do
|
2026-02-12 00:16:32 +00:00
|
|
|
live "/users/settings", Auth.Settings, :edit
|
|
|
|
|
live "/users/settings/confirm-email/:token", Auth.Settings, :confirm_email
|
2025-12-30 12:26:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
post "/users/update-password", UserSessionController, :update_password
|
|
|
|
|
end
|
|
|
|
|
|
2026-02-18 21:23:15 +00:00
|
|
|
scope "/", BerrypodWeb do
|
2025-12-30 12:26:46 +00:00
|
|
|
pipe_through [:browser]
|
|
|
|
|
|
|
|
|
|
live_session :current_user,
|
2026-02-18 21:23:15 +00:00
|
|
|
on_mount: [{BerrypodWeb.UserAuth, :mount_current_scope}] do
|
2026-02-12 00:16:32 +00:00
|
|
|
live "/users/register", Auth.Registration, :new
|
|
|
|
|
live "/users/log-in", Auth.Login, :new
|
|
|
|
|
live "/users/log-in/:token", Auth.Confirmation, :new
|
2025-12-30 12:26:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
post "/users/log-in", UserSessionController, :create
|
|
|
|
|
delete "/users/log-out", UserSessionController, :delete
|
|
|
|
|
end
|
2025-12-30 12:26:26 +00:00
|
|
|
end
|