Redirect to index after deleting feed
This commit is contained in:
@ -221,8 +221,7 @@ async def remove_feed(request: Request, feed_url: str = Form()):
|
|||||||
reader.delete_feed(feed_url)
|
reader.delete_feed(feed_url)
|
||||||
reader.update_search()
|
reader.update_search()
|
||||||
|
|
||||||
context = make_context_index(request)
|
return RedirectResponse(url=f"/", status_code=303)
|
||||||
return templates.TemplateResponse("index.html", context)
|
|
||||||
|
|
||||||
|
|
||||||
@app.get("/search", response_class=HTMLResponse)
|
@app.get("/search", response_class=HTMLResponse)
|
||||||
|
Reference in New Issue
Block a user