Add ping route
This commit is contained in:
parent
47b429e8b1
commit
9ce608b637
@ -63,3 +63,8 @@ async def log_redirect(
|
|||||||
log(link, ip, user_agent)
|
log(link, ip, user_agent)
|
||||||
db.close()
|
db.close()
|
||||||
return RedirectResponse(url=link_record.redirect_link)
|
return RedirectResponse(url=link_record.redirect_link)
|
||||||
|
|
||||||
|
|
||||||
|
@app.get("/api/ping")
|
||||||
|
async def ping():
|
||||||
|
return {"ping": "pong"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user