[FastAPI] add /rss and /rss/modified

There are slight differences in that, with `python-feedgen`,
an empty description field completely omits the description,
but includes the description when there is one.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-06-27 09:02:22 -07:00
parent 8d6e782ba1
commit eec09dec3e
3 changed files with 196 additions and 1 deletions

View file

@ -18,7 +18,7 @@ from aurweb.auth import BasicAuthBackend
from aurweb.db import get_engine, query
from aurweb.models.accepted_term import AcceptedTerm
from aurweb.models.term import Term
from aurweb.routers import accounts, auth, errors, html, sso, trusted_user
from aurweb.routers import accounts, auth, errors, html, rss, sso, trusted_user
# Setup the FastAPI app.
app = FastAPI(exception_handlers=errors.exceptions)
@ -50,6 +50,7 @@ async def app_startup():
app.include_router(auth.router)
app.include_router(accounts.router)
app.include_router(trusted_user.router)
app.include_router(rss.router)
# Initialize the database engine and ORM.
get_engine()