Skip to content

Commit 38c676d

Browse files
authored
add redirect to openapi ui
1 parent 70d7a8a commit 38c676d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/resource_class_kwargs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,10 @@ for res in namesp.resources:
6969
api.add_namespace(namesp)
7070

7171
app = Flask('test')
72+
from flask import redirect
73+
@app.route('/', methods=['POST', 'GET'])
74+
def home():
75+
return redirect('/api/v1/ui')
76+
7277
app.register_blueprint(blueprint)
7378
app.run(debug=False, port=8002)

0 commit comments

Comments
 (0)