diff options
author | Emile <hanemile@protonmail.com> | 2020-03-22 15:49:17 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-03-22 15:49:17 +0100 |
commit | 6a29ca400cd3c2a4be269f7016261eb19dc5d968 (patch) | |
tree | 51a9603e61260124b27eb66ddf102a30ae33a8c4 /src | |
parent | 9a8f949de3c85d38109738f7bdc787dfa39f190f (diff) |
updated comments
Diffstat (limited to 'src')
-rw-r--r-- | src/http/http.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/http.go b/src/http/http.go index bca2d79..5b25575 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -23,8 +23,10 @@ func Server() { fs := http.FileServer(http.Dir("./hosted/assets")) assets.PathPrefix("/").Handler(http.StripPrefix("/assets/", fs)) + // download / view handlers r.HandleFunc("/download", downloadHandler).Methods("GET") + // index (path) handler t := r.PathPrefix("/").Subrouter() t.PathPrefix("/").HandlerFunc(pathHandler) |