diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 582bcb2..39d6fc3 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -49,7 +49,7 @@ jobs: contents: read packages: write # Only run when we are pushing to the repo's master branch - if: ${{ github.event_name == 'push' }} + # if: ${{ github.event_name == 'push' }} steps: - name: Checkout repository uses: actions/checkout@v2 diff --git a/splash/api/main.py b/splash/api/main.py index abb1d77..734beb3 100644 --- a/splash/api/main.py +++ b/splash/api/main.py @@ -43,9 +43,9 @@ def init_logging(): app = FastAPI( - openapi_url="/api/v1/openapi.json", - docs_url="/api/docs", - redoc_url="/api/redoc", + openapi_url="/splash/api/v1/openapi.json", + docs_url="/splash/api/docs", + redoc_url="/splash/api/redoc", # swagger_ui_oauth2_redirect_url="/api/docs/oauth2-redirect" ) @@ -90,49 +90,49 @@ async def handle_wrong_etag(response, exc): ) -@app.get("/api/v1/settings") +@app.get("/splash/api/v1/settings") async def get_settings(): return {"google_client_id": ConfigStore.GOOGLE_CLIENT_ID} app.include_router( auth_router, - prefix="/api/v1/idtokensignin", + prefix="/splash/api/v1/idtokensignin", tags=["tokens"], responses={404: {"description": "Not found"}}, ) app.include_router( users_router, - prefix="/api/v1/users", + prefix="/splash/api/v1/users", tags=["users"], responses={404: {"description": "Not found"}}, ) app.include_router( pages_router, - prefix="/api/v1/pages", + prefix="/splash/api/v1/pages", tags=["pages"], responses={404: {"description": "Not found"}}, ) app.include_router( runs_router, - prefix="/api/v1/runs", + prefix="/splash/api/v1/runs", tags=["runs"], responses={404: {"description": "Not found"}}, ) app.include_router( teams_router, - prefix="/api/v1/teams", + prefix="/splash/api/v1/teams", tags=["teams"], responses={404: {"description": "Not found"}}, ) app.include_router( references_router, - prefix="/api/v1/references", + prefix="/splash/api/v1/references", tags=["references"], responses={404: {"description": "Not found"}}, ) diff --git a/splash/test/fixtures/add.py b/splash/test/fixtures/add.py index f40ae33..eafeee3 100644 --- a/splash/test/fixtures/add.py +++ b/splash/test/fixtures/add.py @@ -21,7 +21,7 @@ from splash.api.main import app -API_URL_ROOT = "/api/v1" +API_URL_ROOT = "/splash/api/v1" os.environ["TOKEN_SECRET_KEY"] = "the_question_to_the_life_the_universe_and_everything" os.environ["GOOGLE_CLIENT_ID"] = "Gollum" os.environ["GOOGLE_CLIENT_SECRET"] = "the_one_ring"