flounder

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

commit 40770ad0c9b1946955266c1c4bc69c86b1d79ddb
parent 6c814bb3f1ed4320bc0a072caeaaac83fd653673
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Wed, 10 Feb 2021 20:54:33 -0800

Limit account actions

Not really that problematic yet

Diffstat:
Mhttp.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/http.go b/http.go @@ -783,7 +783,7 @@ func runHTTPServer() { serveMux.HandleFunc(hostname+"/", rootHandler) serveMux.HandleFunc(hostname+"/my_site", mySiteHandler) - serveMux.HandleFunc(hostname+"/me", myAccountHandler) + serveMux.HandleFunc(hostname+"/me", limit(myAccountHandler)) serveMux.HandleFunc(hostname+"/my_site/flounder-archive.zip", archiveHandler) serveMux.HandleFunc(hostname+"/admin", adminHandler) serveMux.HandleFunc(hostname+"/edit/", editFileHandler)