RohanHBTU commited on
Commit
ed45e59
1 Parent(s): fe16cf9

added comments

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -15,6 +15,8 @@ app.add_middleware(
15
  allow_headers=["*"],
16
  )
17
 
 
 
18
  @app.get('/')
19
  def index():
20
  return {"message":"Welcome to Hinglish Translator"}
 
15
  allow_headers=["*"],
16
  )
17
 
18
+ #since CORS has been enabled, this api can be used to fetch data using jquery (https://api.jquery.com/jQuery.get/)
19
+
20
  @app.get('/')
21
  def index():
22
  return {"message":"Welcome to Hinglish Translator"}