mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-20 08:25:50 +08:00
18 lines
283 B
Python
18 lines
283 B
Python
# coding:utf-8
|
|
|
|
from flask import Flask
|
|
from flask import Blueprint, render_template
|
|
|
|
|
|
task = Blueprint('task', __name__, template_folder='templates')
|
|
|
|
|
|
@task.route("/")
|
|
def index():
|
|
return render_template('default/site.html')
|
|
|
|
|
|
@task.route("/count")
|
|
def count():
|
|
return "0"
|