-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathconfig.py
More file actions
32 lines (29 loc) · 703 Bytes
/
config.py
File metadata and controls
32 lines (29 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import os
DB_NAME = 'sqlite:///{}/db/data.db'.format(os.path.abspath("."))
VERSION = 1
API_PREFIX = "api/v{}".format(VERSION)
APP_CONFIG = {
'SQLALCHEMY_DATABASE_URI': DB_NAME,
'SQLALCHEMY_TRACK_MODIFICATIONS': False,
'PROPAGATE_EXCEPTIONS': True,
'JSONIFY_PRETTYPRINT_REGULAR': True,
'JSON_SORT_KEYS': False,
'SWAGGER': {
'title': 'Age of Empires II API',
'uiversion': 3
}
}
SWAGGER_CONFIG = {
"headers": [
],
"specs": [
{
"endpoint": 'apispec',
"route": '/apispec.json'
}
],
'hide_top_bar': True,
"static_url_path": "/flasgger_static",
"swagger_ui": True,
"specs_route": "/docs/"
}