m-ahmad-official commited on
Commit
a5a4b50
·
1 Parent(s): 8aecb90

Add tasks routes at root level for frontend compatibility

Browse files
Files changed (1) hide show
  1. src/main.py +2 -1
src/main.py CHANGED
@@ -35,8 +35,9 @@ app.add_middleware(
35
  # Include API routes
36
  app.include_router(tasks.router, prefix="/api/v1/tasks", tags=["tasks"])
37
  app.include_router(auth_router, prefix="/api/v1", tags=["auth"])
38
- # Also include auth routes at root level for backward compatibility
39
  app.include_router(auth_router, tags=["auth-root"])
 
40
 
41
 
42
  @app.get("/")
 
35
  # Include API routes
36
  app.include_router(tasks.router, prefix="/api/v1/tasks", tags=["tasks"])
37
  app.include_router(auth_router, prefix="/api/v1", tags=["auth"])
38
+ # Also include routes at root level for backward compatibility
39
  app.include_router(auth_router, tags=["auth-root"])
40
+ app.include_router(tasks.router, prefix="/tasks", tags=["tasks-root"])
41
 
42
 
43
  @app.get("/")