MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / add_feed_submit

Function add_feed_submit

RSS_Manager/main.py:28–31  ·  view source on GitHub ↗
(url: str = Form(...), tag: str = Form(...))

Source from the content-addressed store, hash-verified

26
27@app.post("/addfeed")
28async def add_feed_submit(url: str = Form(...), tag: str = Form(...)):
29 feed = Feed(url)
30 add_feed_to_db(url=url, title=feed.title, tag=tag, link=feed.link)
31 return {"message": "add successfully"}
32
33
34@app.get("/deletefeed")

Callers

nothing calls this directly

Calls 2

FeedClass · 0.90
add_feed_to_dbFunction · 0.90

Tested by

no test coverage detected