Create main.py
Browse files
main.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# main.py
|
2 |
+
|
3 |
+
from fastapi import FastAPI
|
4 |
+
from auth import router as auth_router
|
5 |
+
|
6 |
+
app = FastAPI(
|
7 |
+
title="User Authentication API",
|
8 |
+
description="Handles user signup, login, profile update, and avatar management.",
|
9 |
+
version="1.0.0"
|
10 |
+
)
|
11 |
+
|
12 |
+
# Include the auth router under the /auth prefix
|
13 |
+
app.include_router(auth_router)
|
14 |
+
|
15 |
+
# Optional root route to verify the app is running
|
16 |
+
@app.get("/")
|
17 |
+
async def root():
|
18 |
+
return {"message": "Welcome to the User Auth API"}
|