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:
@@ -15,7 +15,7 @@ def is_valid_instance_id(instance_id):
|
||||
assert False, f"instance_id is not a valid UUID4: {instance_id}"
|
||||
|
||||
def test_read_main():
|
||||
from pkg.conf.appmeta import BackendVersion
|
||||
from utils.conf.appmeta import BackendVersion
|
||||
|
||||
response = client.get("/api/site/ping")
|
||||
json_response = response.json()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
from pkg.password.pwd import Password
|
||||
from utils.password.pwd import Password
|
||||
|
||||
def test_password():
|
||||
for i in range(10):
|
||||
|
||||
Reference in New Issue
Block a user