spraakbanken / mink-backend

Flask application serving as a backend to Min Språkbank
MIT License
0 stars 1 forks source link

Add a route for checking whether admin mode is enabled #64

Closed arildm closed 1 year ago

arildm commented 2 years ago

The frontend needs to know if it should show a warning about being careful.

anne17 commented 1 year ago

How does this look?

GET /admin-mode-status

{
    "status": "success",
    "message": "Returning status of admin mode",
    "admin_mode_status": true
}
arildm commented 1 year ago

Looks good to me!

anne17 commented 1 year ago

Fixed in 02e439d.