Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit 0b3e818

Browse files
fix image upload, station element endpoint by station id
1 parent e3fa5ca commit 0b3e818

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Babel
12
click
23
cryptography
34
Django
@@ -35,6 +36,5 @@ urllib3
3536
MarkupSafe==2.0.1
3637
uvicorn
3738
Flask-Cors
38-
Babel
3939
opencdms_process @ git+https://github.com/opencdms/opencdms-process.git@main
4040
Werkzeug

src/opencdms_api/main.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,20 @@ def get_app():
3939
climsoft_app = get_climsoft_app()
4040

4141
if settings.SURFACE_API_ENABLED is True:
42-
app.mount("/surface", AuthMiddleWare(WSGIMiddleware(surface_application)))
42+
surface_wsgi_app = WSGIMiddleware(surface_application)
43+
app.mount("/surface", surface_wsgi_app)
44+
# app.mount("/surface", AuthMiddleWare(surface_application))
4345
if settings.MCH_API_ENABLED is True:
44-
app.mount("/mch", AuthMiddleWare(WSGIMiddleware(mch_api_application)))
46+
mch_wsgi_app = WSGIMiddleware(mch_api_application)
47+
app.mount("/mch", mch_wsgi_app)
48+
# app.mount("/mch", AuthMiddleWare(mch_wsgi_app))
4549
if settings.CLIMSOFT_API_ENABLED is True:
46-
app.mount("/climsoft", ClimsoftRBACMiddleware(climsoft_app))
47-
app.mount("/pygeoapi", AuthMiddleWare(WSGIMiddleware(pygeoapi_app)))
50+
app.mount("/climsoft", climsoft_app)
51+
# app.mount("/climsoft", ClimsoftRBACMiddleware(climsoft_app))
52+
53+
pygeoapi_wsgi_app = WSGIMiddleware(pygeoapi_app)
54+
app.mount("/pygeoapi", pygeoapi_wsgi_app)
55+
# app.mount("/pygeoapi", AuthMiddleWare(pygeoapi_wsgi_app))
4856

4957
app.include_router(router)
5058

0 commit comments

Comments
 (0)