fix(api): fix http respons and bad way
This commit is contained in:
1 parent
13fcc233ff
commit
0dc9034f19
4 files changed
+9
-6
No files matched your search
@@ -7,6 +7,7 @@ from utils.loadDotENV import initializeENV
|
||||
from api.categories import api_category
|
||||
from api.product import api_product
|
||||
from api.email import api_email
|
||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||
|
||||
# Инициализация
|
||||
initializeENV()
|
||||
@@ -22,6 +23,8 @@ app.register_blueprint(api_category)
|
||||
app.register_blueprint(api_product)
|
||||
app.register_blueprint(api_email)
|
||||
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1, x_host=1)
|
||||
|
||||
@app.route('/health', methods=['GET'])
|
||||
def health_check():
|
||||
"""Проверка работоспособности API"""
|
||||
|
||||
Reference in new issue
Block a user