EDIT: I am using ATOM as my code editor
This is my first flask app. This is the code for api.py:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
@app.route('/csi/')
def cs():
return 'Hello, World!'
app.run()
I am able to display the home page with the route('/'), however, when I run the URL with extension route('/csi'), it displays 404 not found.
This is what I tried to run:
http://127.0.0.1:5000/csi
and got the following error message:
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.