You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module takes care of starting the API Server, Loading the DB and Adding the endpoints
"""
from flask import Flask, request, jsonify, url_for, Blueprint
from api.utils import generate_sitemap, APIException
from flask_cors import CORS
from api.models import db, Users
api = Blueprint('api', __name__)
CORS(api)# Allow CORS requests to this API
@api.route('/hello', methods=['POST', 'GET'])
def handle_hello():
response_body = {}
response_body = ["message"] = "Hello! I'm a message that came from the backend, check the network tab on the google inspector and you will see the GET request"