flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 7052b40538b59228f4ad763396682b8989ec0ceb
parent 5c687e0a49cd53db58b2a13728594c7460000443
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat, 24 Oct 2020 01:32:29 -0700

notes

Diffstat:
Mhttp.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/http.go b/http.go @@ -187,10 +187,13 @@ func runHTTPServer() { serveMux.HandleFunc(c.RootDomain+"/", rootHandler) serveMux.HandleFunc(c.RootDomain+"/my_site", mySiteHandler) serveMux.HandleFunc(c.RootDomain+"/edit/", editFileHandler) + // serveMux.HandleFunc(c.RootDomain+"/upload/", uploadFilesHandler) serveMux.HandleFunc(c.RootDomain+"/login", loginHandler) serveMux.HandleFunc(c.RootDomain+"/register", registerHandler) serveMux.HandleFunc(c.RootDomain+"/delete/", deleteFileHandler) + // TODO rate limit login https://github.com/ulule/limiter + wrapped := handlers.LoggingHandler(os.Stdout, serveMux) // handle user files based on subdomain