From bb180cfcace0c74a29b76835a9672aacde610957 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 22 Mar 2020 15:49:25 +0100 Subject: defined a view handler --- src/http/http.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/http/http.go') diff --git a/src/http/http.go b/src/http/http.go index 5b25575..8e9eac1 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -25,6 +25,7 @@ func Server() { // download / view handlers r.HandleFunc("/download", downloadHandler).Methods("GET") + r.HandleFunc("/view", viewHandler).Methods("GET") // index (path) handler t := r.PathPrefix("/").Subrouter() -- cgit 1.4.1