geminispace.info

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

commit ba0a09765c5f0ae4cfb96d4c591ef0f14c620edb
parent 974f2141967783f3cfcc42c3981c2f56430b650e
Author: Natalie Pendragon <natpen@natpen.net>
Date:   Mon, 21 Dec 2020 12:04:41 -0500

[serve] Add status endpoint

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

diff --git a/serve/views.py b/serve/views.py @@ -51,6 +51,11 @@ app = JetforceApplication() gus = GUS() +@app.route("/status", strict_trailing_slash=False) +def favicon(request): + return Response(Status.SUCCESS, "text/plain", "ok") + + @app.route("/favicon.txt", strict_trailing_slash=False) def favicon(request): return Response(Status.SUCCESS, "text/plain", "🔭")