From 6a29ca400cd3c2a4be269f7016261eb19dc5d968 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 22 Mar 2020 15:49:17 +0100 Subject: updated comments --- src/http/http.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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) -- cgit 1.4.1