swag-shop/app/api/routes/main_routes.py

13 lines
229 B
Python
Raw Permalink Normal View History

from flask import jsonify
2024-03-12 20:12:19 +01:00
from flasgger import swag_from
2024-03-13 13:43:34 +01:00
from app.doc.root_swag import root_swagger
2024-03-08 14:05:00 +01:00
from app.api import bp
2024-03-05 16:01:26 +01:00
@bp.route("/")
2024-03-13 13:43:34 +01:00
@swag_from(root_swagger)
2024-03-05 16:01:26 +01:00
def hello():
return jsonify({"message": "Hello, Flask!"})