Skip to content

Commit

Permalink
add cors
Browse files Browse the repository at this point in the history
  • Loading branch information
SukhmeetSingh2002 committed Oct 1, 2023
1 parent 4d501ee commit d1c33b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from flask import Flask, request, jsonify
from flask_cors import CORS
from bot import BhagavadGitaBot

app = Flask(__name__)
CORS(app)
bot = BhagavadGitaBot()

@app.route('/', methods=['GET'])
def home():
return jsonify({'message': 'Welcome to my Bhagavad Gita Bot!'})
return jsonify({'message': 'Welcome to my Bhagavad Gita Bot!!'})

@app.route('/api/hello', methods=['GET'])
def hello():
Expand Down

0 comments on commit d1c33b8

Please sign in to comment.