Feature/add delete to service (#555)

This commit is contained in:
crazywoola
2023-07-14 10:37:33 +08:00
committed by GitHub
parent dbe10799e3
commit 004b3caa43
4 changed files with 103 additions and 6 deletions

View File

@@ -149,6 +149,10 @@ def register_blueprints(app):
from controllers.web import bp as web_bp
from controllers.console import bp as console_app_bp
CORS(service_api_bp,
allow_headers=['Content-Type', 'Authorization', 'X-App-Code'],
methods=['GET', 'PUT', 'POST', 'DELETE', 'OPTIONS', 'PATCH']
)
app.register_blueprint(service_api_bp)
CORS(web_bp,