diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-06-03 15:49:25 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-06-03 15:49:25 -0700 |
commit | d7e802610baf6b14409bfde9e345968aed08a641 (patch) | |
tree | 23cdb9452e57de71170551808c256adfc7a24a3f /fatcat_scholar/web.py | |
parent | 2f4cff0265c73f4e4b975176de118bf767d44cd2 (diff) | |
download | fatcat-scholar-d7e802610baf6b14409bfde9e345968aed08a641.tar.gz fatcat-scholar-d7e802610baf6b14409bfde9e345968aed08a641.zip |
start fleshing out /about and /help
Diffstat (limited to 'fatcat_scholar/web.py')
-rw-r--r-- | fatcat_scholar/web.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py index e2fde9b..2fd8b24 100644 --- a/fatcat_scholar/web.py +++ b/fatcat_scholar/web.py @@ -126,6 +126,11 @@ async def web_about(request: Request, lang: LangPrefix = Depends(LangPrefix)): return i18n_templates[lang.code].TemplateResponse("about.html", {"request": request, "locale": lang.code, "lang_prefix": lang.prefix}) +@web.get("/help", include_in_schema=False) +async def web_help(request: Request, lang: LangPrefix = Depends(LangPrefix)): + return i18n_templates[lang.code].TemplateResponse("help.html", {"request": request, "locale": lang.code, "lang_prefix": lang.prefix}) + + @web.get("/search", include_in_schema=False) async def web_search(request: Request, query: FulltextQuery = Depends(FulltextQuery), lang: LangPrefix = Depends(LangPrefix), content: ContentNegotiation = Depends(ContentNegotiation)): |