Add basic logging middleware

This commit is contained in:
Ken Hibino
2020-12-07 07:14:30 -08:00
parent 1ffe9f75f5
commit 8912bb2016
2 changed files with 17 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ func main() {
defer inspector.Close()
router := mux.NewRouter()
router.Use(loggingMiddleware)
api := router.PathPrefix("/api").Subrouter()
// Queue endpoints.