remove extra slash
This commit is contained in:
parent
fd0fb97e48
commit
98b10c1c38
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ app = Flask(__name__, static_url_path="/", static_folder="public")
|
||||||
app.register_blueprint(index, url_prefix="/index")
|
app.register_blueprint(index, url_prefix="/index")
|
||||||
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route("/")
|
||||||
def root():
|
def root():
|
||||||
return redirect("index")
|
return redirect("index")
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,6 @@ from config import Config
|
||||||
router = Blueprint("index", __name__)
|
router = Blueprint("index", __name__)
|
||||||
|
|
||||||
|
|
||||||
@router.route("/")
|
@router.route("")
|
||||||
def index():
|
def index():
|
||||||
return render_template("index.html", name=Config.name)
|
return render_template("index.html", name=Config.name)
|
||||||
|
|
Reference in a new issue