Skip to content
Snippets Groups Projects
Commit 12bbabb6 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

add '/adex-fastapi/' prefix to urls

parent d4ecee02
No related branches found
No related tags found
No related merge requests found
Pipeline #35321 passed
......@@ -11,5 +11,9 @@
* [dump/load a copy of the alta database](https://web-of-wyrd.nl/myworkwiki/doku.php?id=alta_runtime&s[]=dump#qhow_do_i_dump_and_load_a_copy_of_the_production_database_with_postgres_into_a_dev_or_vm_environment)
* [dump/load esap_cache sql](https://web-of-wyrd.nl/myworkwiki/doku.php?id=ucac4_converter&s[]=ucac4#performance)
docker exec -it adex-postgres psql -U postgres -f /shared/sql/adex_cache.sql
### load esap_cache.sql into dockerized Postgres database
manually copy `esap_cache.sql` to ~/shared directory
```
docker exec -it adex-postgres psql -U postgres -f /shared/sql/adex_cache.sql
```
......@@ -41,7 +41,7 @@ services:
- "traefik.enable=true"
- "traefik.http.routers.adex-backend-fastapi.entryPoints=websecure"
- "traefik.http.routers.adex-backend-fastapi.service=adex-backend-fastapi"
- "traefik.http.routers.adex-backend-fastapi.rule=Host(`sdc-dev.astron.nl`) && PathPrefix(`/adex-backend-fastapi`)"
- "traefik.http.routers.adex-backend-fastapi.rule=Host(`sdc-dev.astron.nl`) && PathPrefix(`/adex-fastapi`)"
- "traefik.http.services.adex-backend-fastapi.loadbalancer.server.port=8000"
depends_on:
......
......@@ -39,7 +39,7 @@ services:
- "traefik.enable=true"
- "traefik.http.routers.adex-backend-fastapi.entryPoints=websecure"
- "traefik.http.routers.adex-backend-fastapi.service=adex-backend-fastapi"
- "traefik.http.routers.adex-backend-fastapi.rule=Host(`sdc.astron.nl`) && PathPrefix(`/adex-backend-fastapi`)"
- "traefik.http.routers.adex-backend-fastapi.rule=Host(`sdc.astron.nl`) && PathPrefix(`/adex-fastapi`)"
- "traefik.http.services.adex-backend-fastapi.loadbalancer.server.port=8000"
depends_on:
......
......@@ -18,7 +18,7 @@ def get_db():
# http://127.0.0.1:8000/skyviews/
# http://127.0.0.1:8000/skyviews/?skip=100&limit=100
@router.get("/skyviews/", tags=["skyviews"], response_model=List[schemas.SkyView])
@router.get("/adex-fastapi/skyviews/", tags=["skyviews"], response_model=List[schemas.SkyView])
async def get_skyviews(skip: int = 0, limit: int = 1000, db: Session = Depends(get_db)):
items = crud.get_skyviews(db, skip=skip, limit=limit)
return items
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment