mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 10:05:38 +01:00
Added some joke and info root endpoint and some TODOs
This commit is contained in:
parent
d76a50f5f0
commit
e3be049870
1 changed files with 12 additions and 3 deletions
15
main.py
15
main.py
|
|
@ -1,14 +1,23 @@
|
||||||
from fastapi import FastAPI, HTTPException, Depends
|
from fastapi import FastAPI, HTTPException, Depends
|
||||||
|
|
||||||
from routers.tasks import router as tasks_router
|
|
||||||
from routers.projects import router as projects_router
|
from routers.projects import router as projects_router
|
||||||
|
from routers.users import router as users_router
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
app.include_router(tasks_router)
|
app.include_router(users_router)
|
||||||
app.include_router(projects_router)
|
app.include_router(projects_router)
|
||||||
|
|
||||||
"""ping pong :)"""
|
"""ping pong :)"""
|
||||||
@app.get("/ping")
|
@app.get("/ping")
|
||||||
def ping():
|
def ping():
|
||||||
return {"message": "pong"}
|
return {"message": "pong"}
|
||||||
|
|
||||||
|
"""Gives project url"""
|
||||||
|
@app.get("/sources")
|
||||||
|
def source():
|
||||||
|
return {"url": "https://github.com/a-mayb3/Kanban_clone_backend"}
|
||||||
|
|
||||||
|
## TODO: Add root endpoint that gives basic info about the API
|
||||||
|
## TODO: Add more detailed error handling and logging
|
||||||
|
## TODO: Implement authentication and authorization mechanisms
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue