Chapter 1: Hello, World! (v0.1)
This commit is contained in:
parent
e308d0d969
commit
23b3fc85d4
|
@ -0,0 +1,5 @@
|
|||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
from app import routes
|
|
@ -0,0 +1,7 @@
|
|||
from app import app
|
||||
|
||||
|
||||
@app.route('/')
|
||||
@app.route('/index')
|
||||
def index():
|
||||
return "Hello, World!"
|
|
@ -0,0 +1 @@
|
|||
from app import app
|
Loading…
Reference in New Issue