feat: Implement API routers for user, tag, vas, webdav, and slave functionalities
- Added user authentication and registration endpoints with JWT support. - Created tag management routes for creating and deleting tags. - Implemented value-added service (VAS) endpoints for managing storage packs and orders. - Developed WebDAV account management routes for creating, updating, and deleting accounts. - Introduced slave router for handling file uploads, downloads, and aria2 task management. - Enhanced JWT utility functions for token creation and secret key management. - Established lifespan management for FastAPI application startup and shutdown processes. - Integrated password handling utilities with Argon2 hashing and two-factor authentication support.
This commit is contained in:
6
main.py
6
main.py
@@ -1,10 +1,10 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
from pkg.conf import appmeta
|
||||
from pkg.lifespan import lifespan
|
||||
from utils.conf import appmeta
|
||||
from utils.lifespan import lifespan
|
||||
from models.database import init_db
|
||||
from models.migration import migration
|
||||
from pkg.JWT import JWT
|
||||
from utils.JWT import JWT
|
||||
from routers import routers
|
||||
|
||||
# 添加初始化数据库启动项
|
||||
|
||||
Reference in New Issue
Block a user