about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-22 15:49:25 +0100
committerEmile <hanemile@protonmail.com>2020-03-22 15:49:25 +0100
commitbb180cfcace0c74a29b76835a9672aacde610957 (patch)
tree7a585d8c08730d30c54474161ec9c73025a41380
parent6a29ca400cd3c2a4be269f7016261eb19dc5d968 (diff)
defined a view handler
-rw-r--r--src/http/http.go1
1 files changed, 1 insertions, 0 deletions
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()