Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions flaskapp/flaskapp.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
from flask import Flask
app = Flask(__name__)

#intialize directory in chich app begins
#preempt http requester methods to be used (GET, POST)
@app.route('/', methods=['GET', 'POST'])

def index():
#displays index page within the '/' directory
return render_template('index.html')

if __name__ == '__main__':
#run the app from main
app.run()