Add redirect route from / to /ui
This commit is contained in:
parent
f0847cd837
commit
a3afb1b0b4
1 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
from flask import Flask, request, jsonify, send_from_directory, Blueprint
|
from flask import Flask, request, jsonify, send_from_directory, Blueprint, redirect
|
||||||
from .cvs_client import CVSClient
|
from .cvs_client import CVSClient
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
@ -174,6 +174,13 @@ def health_check():
|
||||||
"cvs_client": "initialized" if cvs_client else "not initialized"
|
"cvs_client": "initialized" if cvs_client else "not initialized"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@api_bp.route('/', methods=['GET'])
|
||||||
|
def redirect_to_ui():
|
||||||
|
"""
|
||||||
|
Redirect root path to /ui/
|
||||||
|
"""
|
||||||
|
return redirect('/ui/')
|
||||||
|
|
||||||
@api_bp.route('/ui/', methods=['GET'])
|
@api_bp.route('/ui/', methods=['GET'])
|
||||||
def index():
|
def index():
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue