Skip to content

Commit

Permalink
Merge pull request #16 from openearthplatforminitiative/fix/remove-logo
Browse files Browse the repository at this point in the history
Fix/remove logo
  • Loading branch information
giltinde authored Jun 20, 2024
2 parents 44f5f1e + 04a5cb6 commit 0728164
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 29 deletions.
4 changes: 2 additions & 2 deletions deployment/kubernetes/weather-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ spec:
prometheus.io/path: "/metrics"
spec:
containers:
- image: ghcr.io/openearthplatforminitiative/weather-api:0.1.4
- image: ghcr.io/openearthplatforminitiative/weather-api:0.1.5
name: weather-api
ports:
- containerPort: 8080
env:
- name: API_ROOT_PATH
value: "/weather"
- name: VERSION
value: "0.1.4"
value: "0.1.5"
- name: API_DOMAIN
valueFrom:
configMapKeyRef:
Expand Down
6 changes: 0 additions & 6 deletions weather_api/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from fastapi import FastAPI
from fastapi.openapi.docs import get_redoc_html
from fastapi.staticfiles import StaticFiles
from prometheus_fastapi_instrumentator import Instrumentator

from weather_api.config import settings
Expand All @@ -19,11 +18,6 @@ def get_application() -> FastAPI:
)
api.include_router(weather_routes.router)
api.include_router(system_resources.router)
api.mount(
f"/static",
StaticFiles(directory=this_dir / "assets"),
name="static",
)

api.openapi_schema = openapi.custom_openapi(api, this_dir / "example_code")
Instrumentator().instrument(api).expose(api)
Expand Down
17 changes: 0 additions & 17 deletions weather_api/assets/icons/open-epi-logo.svg

This file was deleted.

4 changes: 0 additions & 4 deletions weather_api/openapi/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ def custom_openapi(app: FastAPI, example_code_dir: Path):
routes=app.routes,
)

openapi_schema["info"]["x-logo"] = {
"url": f"{settings.api_url}/static/icons/open-epi-logo.svg"
}

routes_that_need_doc = [
route for route in app.routes if isinstance(route, APIRoute)
]
Expand Down

0 comments on commit 0728164

Please sign in to comment.