Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -13,7 +13,7 @@ from starlette.middleware.cors import CORSMiddleware
|
|
| 13 |
# Correctly import the database table creation function
|
| 14 |
from src.database import create_db_and_tables, engine
|
| 15 |
# Import all the necessary routers for the application
|
| 16 |
-
from src.routers import students, devices, clearance, token, users, admin
|
| 17 |
from src.crud import users as user_crud
|
| 18 |
from src.models import UserCreate, Role
|
| 19 |
|
|
@@ -95,6 +95,7 @@ app.include_router(devices.router)
|
|
| 95 |
app.include_router(students.router)
|
| 96 |
app.include_router(token.router)
|
| 97 |
app.include_router(users.router)
|
|
|
|
| 98 |
print("All API routers included.")
|
| 99 |
|
| 100 |
# --- Default and System Endpoints ---
|
|
|
|
| 13 |
# Correctly import the database table creation function
|
| 14 |
from src.database import create_db_and_tables, engine
|
| 15 |
# Import all the necessary routers for the application
|
| 16 |
+
from src.routers import students, devices, clearance, token, users, admin, rfid
|
| 17 |
from src.crud import users as user_crud
|
| 18 |
from src.models import UserCreate, Role
|
| 19 |
|
|
|
|
| 95 |
app.include_router(students.router)
|
| 96 |
app.include_router(token.router)
|
| 97 |
app.include_router(users.router)
|
| 98 |
+
app.include_router(rfid.router)
|
| 99 |
print("All API routers included.")
|
| 100 |
|
| 101 |
# --- Default and System Endpoints ---
|