correction of skills router
This commit is contained in:
1 parent
f7a09291af
commit
1175c0030b
2 files changed
+10
-2
No files matched your search
@@ -40,3 +40,11 @@ def get_db_connection():
|
|||||||
@app.get("/")
|
@app.get("/")
|
||||||
def read_root():
|
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 = APIRouter()
|
||||||
|
|
||||||
@router.get("/api/skills")
|
@router.get("/")
|
||||||
def read_experience_tasks():
|
def read_skills():
|
||||||
conn = get_db_connection()
|
conn = get_db_connection()
|
||||||
try:
|
try:
|
||||||
with conn.cursor() as cursor:
|
with conn.cursor() as cursor:
|
||||||
|
|||||||
Reference in new issue
Block a user