diff options
-rw-r--r-- | git-gmi/cgi.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/git-gmi/cgi.py b/git-gmi/cgi.py index 9f0e1a9..76f1522 100644 --- a/git-gmi/cgi.py +++ b/git-gmi/cgi.py @@ -20,7 +20,7 @@ def handle_cgi_request(path: str): print(f"{STATUS_SUCCESS} {META_GEMINI}") # welcome page print("Welcome to the git.gmi demo") print("Available repositories:") - print("\n".join([f"=> {dir}/summary" for dir in listdir(GIT_CATALOG)])) + print("\n".join([f"=> {dir}/" for dir in listdir(GIT_CATALOG)])) return try: @@ -32,7 +32,8 @@ def handle_cgi_request(path: str): if len(path_trace) > 1: view = path_trace[1] # e.g. summary, tree, log else: - pass # TODO: summary + print("31 summary") + return if view == "summary": try: |