diff --git a/server/main.py b/server/main.py index e0c160d..5721e1f 100644 --- a/server/main.py +++ b/server/main.py @@ -1,5 +1,5 @@ from fastapi import FastAPI -from routes import auth, song +from routes import auth, song, server_check from database import engine from models.base import Base @@ -7,5 +7,6 @@ app.include_router(auth.router, prefix="/auth") app.include_router(song.router, prefix='/song') +app.include_router(server_check.router) Base.metadata.create_all(engine) \ No newline at end of file diff --git a/server/routes/server_check.py b/server/routes/server_check.py new file mode 100644 index 0000000..2ee5f04 --- /dev/null +++ b/server/routes/server_check.py @@ -0,0 +1,7 @@ +from fastapi import APIRouter + +router = APIRouter() + +@router.get('/', status_code=200) +def server_check(): + return {"message": "Server is running"} \ No newline at end of file