correction of skills router
This commit is contained in:
1 parent
f7a09291af
commit
1175c0030b
2 files changed
+11
-3
No files matched your search
@@ -39,4 +39,12 @@ def get_db_connection():
|
||||
|
||||
@app.get("/")
|
||||
def read_root():
|
||||
return {"status": "API Portfolio fonctionnelle !"}
|
||||
return {"status": "API Portfolio fonctionnelle !"}
|
||||
|
||||
|
||||
|
||||
app.include_router(
|
||||
skills.router,
|
||||
prefix="/api/skills",
|
||||
tags=["Skills"]
|
||||
)
|
||||
+2
-2
@@ -4,8 +4,8 @@ from ..main import get_db_connection
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
@router.get("/api/skills")
|
||||
def read_experience_tasks():
|
||||
@router.get("/")
|
||||
def read_skills():
|
||||
conn = get_db_connection()
|
||||
try:
|
||||
with conn.cursor() as cursor:
|
||||
|
||||
Reference in new issue
Block a user