I wish to show my data in a webpage by using flask. (Trying to learn it)
from flask import Flask, jsonify, make_response
from flask_cors import CORS
api = Flask(__name__)
CORS(api)
api.config['JSON_AS_ASCII'] = False
api.config["JSON_SORT_KEYS"] = False
@api.route('/token',methods=["POST"])
def get_token(self):
    data = {
            "type": "testing",
            }
    response1 = make_response(jsonify(data))
    return response1
if __name__ == "__main__":
    api.run(port=11111)
current output when try http://127.0.0.1:11111/ on google chrome:
Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
I also tried with /token:
Method Not Allowed The method is not allowed for the requested URL.