
- Created user model with SQLAlchemy ORM - Implemented authentication with JWT tokens (access and refresh tokens) - Added password hashing with bcrypt - Created API endpoints for registration, login, and user management - Set up Alembic for database migrations - Added health check endpoint - Created role-based access control (standard users and superusers) - Added comprehensive documentation
12 lines
419 B
Python
12 lines
419 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api.v1.endpoints import auth, register, users
|
|
|
|
|
|
# Create main API router
|
|
api_router = APIRouter()
|
|
|
|
# Include routers for different endpoints
|
|
api_router.include_router(auth.router, prefix="/auth", tags=["Authentication"])
|
|
api_router.include_router(users.router, prefix="/users", tags=["Users"])
|
|
api_router.include_router(register.router, prefix="/register", tags=["Registration"]) |