Created
August 20, 2022 09:20
-
-
Save nomadrat/e3a4aab9ccd5fcd5d4ef51e0b99a2c99 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
app = Flask(__name__) | |
app.config["SERVER_NAME"] = "flaskapp.local:5000" | |
@app.route("/") | |
def root_index(): | |
return "this is flaskapp.local" | |
@app.route("/", subdomain="<vehicle>") | |
def subdomain_index(vehicle): | |
return vehicle | |
if __name__ == '__main__': | |
app.run(debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment