Revize 2e646e3b
Přidáno uživatelem Jan Pašek před více než 3 roky(ů)
app.py | ||
---|---|---|
1 |
from flask import Flask |
|
1 |
from flask import Flask, redirect
|
|
2 | 2 |
import os |
3 | 3 |
from src.controllers.certificates_controller import CertController |
4 | 4 |
|
... | ... | |
7 | 7 |
|
8 | 8 |
@app.route('/') |
9 | 9 |
def index(): |
10 |
return 'Welcome to the X.509 management application homepage!'
|
|
10 |
return redirect("/static/index.html")
|
|
11 | 11 |
|
12 | 12 |
|
13 | 13 |
@app.route('/api/certificates', methods=["POST"]) |
Také k dispozici: Unified diff
Re #8475 - Added redirect from "/" to "/static/index.html"