mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-10 10:15:10 -04:00
added version and title
This commit is contained in:
parent
06252d8ee4
commit
b7415adfa3
2 changed files with 6 additions and 0 deletions
|
@ -93,6 +93,8 @@ If you want to add/remove dependencies you have to rebuild the container.
|
|||
|
||||
# RESTful API
|
||||
|
||||
If you go to https://matweb.info/apidocs you can find a Swagger documentation.
|
||||
|
||||
## Upload Endpoint
|
||||
|
||||
**Endpoint:** `/api/upload`
|
||||
|
|
4
main.py
4
main.py
|
@ -14,6 +14,10 @@ def create_app(test_config=None):
|
|||
app.config['UPLOAD_FOLDER'] = os.environ.get('MAT2_WEB_DOWNLOAD_FOLDER', './uploads/')
|
||||
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB
|
||||
app.config['CUSTOM_TEMPLATES_DIR'] = 'custom_templates'
|
||||
app.config['SWAGGER'] = {
|
||||
'title': 'Mat2 Web API',
|
||||
'version': '1.0.0',
|
||||
}
|
||||
# optionally load settings from config.py
|
||||
app.config.from_object('config')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue