The demo account — one shared user that whitelisted emails entered from the login page, reset on a schedule — goes end to end (owner decision, E34): demo.py and the reset job, users.is_demo and demo_whitelist (migration 0098 deletes the demo user, its audit rows, the reset job's override and notices, then drops the column and table; the downgrade restores the empty schema), the /auth/demo entry, the admin whitelist and reset, the Demo tab, the banner, the login page's "Try the demo", and every is_demo branch in routes, userscope, scheduler and the UI. require_human only ever refused the demo account, so its 87 uses become current_user (owner-approved); require_write_scope keeps its own check. The login page's "or" divider now shows only beside the Google button: without the demo entry under it, an instance without Google would have said "or" to nothing. A contract test (removedFeatures) fails on the word anywhere in the backend, frontend, e2e or scripts — seen red on a planted hit. Size ceilings tightened for the modules that shrank; admin.py is back under the limit.
33 lines
1.0 KiB
Python
33 lines
1.0 KiB
Python
"""Plex route package — assembles the admin/browse/playback sub-routers.
|
|
|
|
Read endpoints (libraries/browse/show/image) are available to ANY authenticated user
|
|
(pure-Siftlode included) — this is an access layer to the Plex library WITHOUT requiring a plex.tv
|
|
account, and playback is a local file. Admin endpoints test the connection and run the catalog sync.
|
|
|
|
Split out of the former single routes/plex.py (R12 S1). `router` keeps the same shape the app
|
|
wiring expects (`plex_routes.router`), so main.py is unchanged.
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.routes.plex import (
|
|
admin,
|
|
browse,
|
|
collections,
|
|
detail,
|
|
discover,
|
|
people,
|
|
playback,
|
|
playlists,
|
|
)
|
|
|
|
router = APIRouter()
|
|
router.include_router(admin.router)
|
|
router.include_router(browse.router)
|
|
router.include_router(collections.router)
|
|
router.include_router(detail.router)
|
|
router.include_router(discover.router)
|
|
router.include_router(people.router)
|
|
router.include_router(playback.router)
|
|
router.include_router(playlists.router)
|