Spaces:
Runtime error
Runtime error
Mayuresh Agashe
commited on
Commit
·
62dc236
1
Parent(s):
ef84f3a
Update router.py
Browse files
TechdocsAPI/backend/router.py
CHANGED
|
@@ -15,6 +15,11 @@ app.add_middleware(
|
|
| 15 |
allow_headers=["*"],
|
| 16 |
)
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
@app.get("/api/response_check", tags=["Resource Server"])
|
| 19 |
def api_response_check():
|
| 20 |
print("api_response_check")
|
|
|
|
| 15 |
allow_headers=["*"],
|
| 16 |
)
|
| 17 |
|
| 18 |
+
|
| 19 |
+
@app.get("/", tags=["Home"])
|
| 20 |
+
def api_home():
|
| 21 |
+
return {'detail': 'Welcome to Techdocs API'}
|
| 22 |
+
|
| 23 |
@app.get("/api/response_check", tags=["Resource Server"])
|
| 24 |
def api_response_check():
|
| 25 |
print("api_response_check")
|