Files
open-ww3-project-ww3-tw/blueprint/index_views.py

17 lines
376 B
Python

from flask import Blueprint, render_template, url_for, redirect
import sqlite3
import os
index_bp = Blueprint('/', __name__)
@index_bp.route('/')
def repage():
return redirect(url_for('blog.home'))
@index_bp.route('/mirrors/')
def mirrors():
return redirect(url_for('blog.autoindex'))
@index_bp.route('/greet/<name>/')
def greet(name):
return f'Hello, {name}!'