diff --git a/README.md b/README.md index b33fdd8..a7de560 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Yet another rewrite of my [personal site](https://ayo.ayco.io) 3. To start development, run the following: ```bash - (.venv)$ python api.py + (.venv)$ flask --app web.py --debug run ``` > Note: On a Mac, the default port 5000 is used by AirDrop & Handoff; you may have to turn those off diff --git a/web.py b/web.py index eec66d9..69e68ae 100755 --- a/web.py +++ b/web.py @@ -5,5 +5,9 @@ app = Flask(__name__) def home(): return render_template('index.html') +@app.route('/api') +def api(): + return 'API' + if __name__ == '__main__': app.run(host='0.0.0.0')