mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
up
This commit is contained in:
@@ -102,3 +102,7 @@ venv.bak/
|
||||
|
||||
# mypy
|
||||
.mypy_cache/
|
||||
|
||||
|
||||
.DS_Store
|
||||
*.DS_Store
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
from flask import Flask
|
||||
from flask import render_template
|
||||
|
||||
app = Flask(__name__)
|
||||
app.debug = True
|
||||
|
||||
@app.route("/h")
|
||||
def hello():
|
||||
return "Hello World!"
|
||||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
return "Hello World!"
|
||||
def index(name=None):
|
||||
return render_template('index.html', name=name)
|
||||
@@ -0,0 +1 @@
|
||||
index
|
||||
Reference in New Issue
Block a user