Spaces:
Sleeping
Sleeping
fix: correct router imports and update docker-compose for decoupled frontend
Browse files- app/api/router.py +14 -16
- docker-compose.yml +4 -29
app/api/router.py
CHANGED
|
@@ -2,23 +2,21 @@
|
|
| 2 |
API Router principal
|
| 3 |
"""
|
| 4 |
from fastapi import APIRouter
|
| 5 |
-
from app.api.routes import
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
auth
|
| 13 |
-
)
|
| 14 |
|
| 15 |
router = APIRouter()
|
| 16 |
|
| 17 |
# Include all route groups
|
| 18 |
-
router.include_router(
|
| 19 |
-
router.include_router(
|
| 20 |
-
router.include_router(
|
| 21 |
-
router.include_router(
|
| 22 |
-
router.include_router(
|
| 23 |
-
router.include_router(
|
| 24 |
-
router.include_router(
|
|
|
|
| 2 |
API Router principal
|
| 3 |
"""
|
| 4 |
from fastapi import APIRouter
|
| 5 |
+
from app.api.routes.users import router as users_router
|
| 6 |
+
from app.api.routes.projects import router as projects_router
|
| 7 |
+
from app.api.routes.papers import router as papers_router
|
| 8 |
+
from app.api.routes.analysis import router as analysis_router
|
| 9 |
+
from app.api.routes.protocols import router as protocols_router
|
| 10 |
+
from app.api.routes.discovery import router as discovery_router
|
| 11 |
+
from app.api.routes.auth import router as auth_router
|
|
|
|
|
|
|
| 12 |
|
| 13 |
router = APIRouter()
|
| 14 |
|
| 15 |
# Include all route groups
|
| 16 |
+
router.include_router(auth_router, prefix="/auth", tags=["Authentication"])
|
| 17 |
+
router.include_router(users_router, prefix="/users", tags=["Users"])
|
| 18 |
+
router.include_router(projects_router, prefix="/projects", tags=["Projects"])
|
| 19 |
+
router.include_router(papers_router, prefix="/papers", tags=["Papers"])
|
| 20 |
+
router.include_router(analysis_router, prefix="/analysis", tags=["Analysis"])
|
| 21 |
+
router.include_router(protocols_router, prefix="/protocols", tags=["Protocols"])
|
| 22 |
+
router.include_router(discovery_router, prefix="/discovery", tags=["Discovery"])
|
docker-compose.yml
CHANGED
|
@@ -123,37 +123,12 @@ services:
|
|
| 123 |
disable: true
|
| 124 |
command: celery -A app.core.celery:celery_app worker --loglevel=info
|
| 125 |
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
build:
|
| 131 |
-
context: ./ai-scientific-coinvestigator-frontend
|
| 132 |
-
dockerfile: Dockerfile
|
| 133 |
-
args:
|
| 134 |
-
NEXT_PUBLIC_API_URL: http://localhost:8000/api/v1
|
| 135 |
-
NEXT_PUBLIC_WS_URL: ws://localhost:8000
|
| 136 |
-
container_name: scoinvestigator-frontend
|
| 137 |
-
restart: unless-stopped
|
| 138 |
-
ports:
|
| 139 |
-
- "3000:3000"
|
| 140 |
-
environment:
|
| 141 |
-
NODE_ENV: production
|
| 142 |
-
HOSTNAME: "0.0.0.0"
|
| 143 |
-
depends_on:
|
| 144 |
-
- api
|
| 145 |
-
healthcheck:
|
| 146 |
-
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/"]
|
| 147 |
-
interval: 30s
|
| 148 |
-
timeout: 10s
|
| 149 |
-
retries: 3
|
| 150 |
-
start_period: 20s
|
| 151 |
|
| 152 |
volumes:
|
| 153 |
postgres_data:
|
| 154 |
qdrant_data:
|
| 155 |
redis_data:
|
| 156 |
-
|
| 157 |
-
networks:
|
| 158 |
-
default:
|
| 159 |
-
name: scoinvestigator-network
|
|
|
|
| 123 |
disable: true
|
| 124 |
command: celery -A app.core.celery:celery_app worker --loglevel=info
|
| 125 |
|
| 126 |
+
|
| 127 |
+
networks:
|
| 128 |
+
default:
|
| 129 |
+
name: scoinvestigator-network
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
|
| 131 |
volumes:
|
| 132 |
postgres_data:
|
| 133 |
qdrant_data:
|
| 134 |
redis_data:
|
|
|
|
|
|
|
|
|
|
|
|