fds
This commit is contained in:
parent
d4466a0c5e
commit
9a93a0cb3c
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ def subscribe_sub(v, sub):
|
|||
g.db.commit()
|
||||
cache.delete_memoized(frontlist)
|
||||
|
||||
return {"message": "Subscribed to sub!"}
|
||||
return {"message": f"Subscribed to /h/{sub}"}
|
||||
|
||||
|
||||
@app.post("/h/<sub>/unsubscribe")
|
||||
|
@ -38,7 +38,7 @@ def unsubscribe_sub(v, sub):
|
|||
g.db.commit()
|
||||
cache.delete_memoized(frontlist)
|
||||
|
||||
return {"message": "Unsubscribed from sub!"}
|
||||
return {"message": f"Unsubscribed from /h/{sub}"}
|
||||
|
||||
|
||||
@app.get("/h/<sub>/subscribers")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue