mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
242 B
13 lines
242 B
7 years ago
|
from flask import Flask
|
||
7 years ago
|
from flask import render_template
|
||
|
|
||
7 years ago
|
app = Flask(__name__)
|
||
7 years ago
|
app.debug = True
|
||
7 years ago
|
|
||
7 years ago
|
@app.route("/h")
|
||
7 years ago
|
def hello():
|
||
7 years ago
|
return "Hello World!"
|
||
|
|
||
|
@app.route("/")
|
||
|
def index(name=None):
|
||
|
return render_template('index.html', name=name)
|