Spaces:
Runtime error
Runtime error
added comments
Browse files
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"}
|