Call setup function in main
This commit is contained in:
parent
c698f36a86
commit
51995a8fd5
1
main.go
1
main.go
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue