add web-ui (#3)

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/python-api-server#3
This commit is contained in:
Michael Grote 2023-04-26 19:53:12 +02:00
parent 47ab99f891
commit 8ad005c568
2 changed files with 6 additions and 0 deletions

View file

@ -26,12 +26,18 @@ services:
MAX_CONTENT_LENGTH: 10 MAX_CONTENT_LENGTH: 10
UPLOAD_DIRECTORY: /uploads UPLOAD_DIRECTORY: /uploads
AUTH_TOKEN: myuploadtoken AUTH_TOKEN: myuploadtoken
ENABLE_WEBSERVER: true # if enabled a list of files can be viewed in a webbrowser (see screenshot)
volumes: volumes:
uploads: uploads:
``` ```
### ENABLE_WEBSERVER Screenshot
![](./assets/screenshot_webui.png)
## API-Endpoints ## API-Endpoints
- see [Flasgger](https://github.com/flasgger/flasgger): ``http://<host>:5040/apidocs/`` - see [Flasgger](https://github.com/flasgger/flasgger): ``http://<host>:5040/apidocs/``

BIN
assets/screenshot_webui.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB