Introduce WILDCARD_TOKENS set in attachments.py to treat "*", ".*", "*.*" as wildcards that fall back to ALLOWED_UPLOAD_TYPES. Add cmd_token_issue and cmd_token_list CLI commands for issuing and listing DevPlace access tokens. Register access_tokens table in SOFT_DELETE_TABLES and initialize its columns and indexes in init_db. Replace Form() with Depends(json_or_form(...)) in admin backup, container, notification, settings, and user routers to support both JSON and form data.
21 lines
444 B
Python
21 lines
444 B
Python
# retoor <retoor@molodetz.nl>
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from devplacepy.routers.auth import (
|
|
forgotpassword,
|
|
login,
|
|
logout,
|
|
resetpassword,
|
|
signup,
|
|
token,
|
|
)
|
|
|
|
router = APIRouter()
|
|
router.include_router(signup.router)
|
|
router.include_router(login.router)
|
|
router.include_router(token.router)
|
|
router.include_router(forgotpassword.router)
|
|
router.include_router(resetpassword.router)
|
|
router.include_router(logout.router)
|