geminispace.info

gemini search engine
git clone https://git.clttr.info/geminispace.info.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit d993f6cbd0a5c627490fd80a9000d793a08c0ca2
parent 6adb5336b5e75aac90e8d31e8ff025741406f7ef
Author: Natalie Pendragon <natpen@natpen.net>
Date:   Wed,  5 Aug 2020 14:33:07 -0400

[serve] Add favicon.txt route

Diffstat:
Mserve/views.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/serve/views.py b/serve/views.py @@ -39,6 +39,11 @@ def render_template(name: str, *args, **kwargs) -> str: app = JetforceApplication() gus = GUS() +@app.route("/favicon.txt", strict_trailing_slash=False) +def favicon(request): + return Response(Status.SUCCESS, "text/plain", "🔭") + + @app.route("/add-seed", strict_trailing_slash=False) def add_seed(request): if request.query: