1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 13:04:19 +00:00

🔧 Move swagger.json to /docs

This commit is contained in:
Stefano Pigozzi 2021-05-06 02:55:11 +02:00
parent 72d349aa90
commit 31dec8a56a
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01

View file

@ -42,7 +42,7 @@ with app.test_request_context():
spec.path(view=view_fn) spec.path(view=view_fn)
@app.route("/api/v1/swagger.json") @app.route("/docs/swagger.json")
def create_swagger_doc(): def create_swagger_doc():
return jsonify(spec.to_dict()) return jsonify(spec.to_dict())