Call setup function in main

This commit is contained in:
Eliot Whalan 2016-06-27 07:47:42 +10:00
parent c698f36a86
commit 51995a8fd5
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
1 changed files with 1 additions and 0 deletions

View File

@ -354,6 +354,7 @@ func rawHandler(w http.ResponseWriter, r *http.Request) {
} }
func main() { func main() {
setup()
router := mux.NewRouter() router := mux.NewRouter()
router.HandleFunc("/p/{pasteId}", pasteHandler) router.HandleFunc("/p/{pasteId}", pasteHandler)
router.HandleFunc("/raw/{pasteId}", rawHandler) router.HandleFunc("/raw/{pasteId}", rawHandler)