Call setup function in main

This commit is contained in:
Eliot Whalan 2016-06-27 07:47:42 +10:00
parent 9cc646db7a
commit 98eef33af3
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() {
setup()
router := mux.NewRouter()
router.HandleFunc("/p/{pasteId}", pasteHandler)
router.HandleFunc("/raw/{pasteId}", rawHandler)