forked from ashishpapanai/chessJS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
15 lines (11 loc) · 735 Bytes
/
Copy pathapp.py
File metadata and controls
15 lines (11 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from flask import Flask, render_template, request # Import the class `Flask` from the `flask` module, written by someone else.
app = Flask(__name__, static_url_path='/static') # Instantiate a new web application called `app`, with `__name__` representing the current file
@app.route("/") # When the user goes to the route `/`, exceute the function immediately below
def index():
return render_template("index.html")
@app.route("/about") # When the user goes to the route `/about`, exceute the function immediately below
def about():
return render_template("about.html")
@app.route("/help") # When the user goes to the route `/help`, exceute the function immediately below
def help():
return render_template("help.html")