Remove /check

This commit is contained in:
2022-12-10 22:54:30 +01:00
parent d086df4bee
commit fb4bf0d469
2 changed files with 7 additions and 25 deletions

View File

@ -65,15 +65,6 @@ def encode_url(url_to_quote: str) -> str:
templates.env.filters["encode_url"] = encode_url
@app.post("/check", response_class=HTMLResponse)
def check_feed(request: Request, feed_url: str = Form()) -> _TemplateResponse:
"""Check all feeds"""
send_to_discord(feed_url)
feed: Feed = reader.get_feed(feed_url)
return templates.TemplateResponse("feed.html", {"request": request, "feed": feed})
@app.post("/add")
async def create_feed(feed_url: str = Form(), webhook_dropdown: str = Form()) -> HTTPException | dict[str, str]:
"""