From 3db63367ef110e7f4a245cde61471e232e86339c Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Mon, 12 Feb 2024 21:16:48 -0800 Subject: fix: fix up tests and linting --- internal/admin/middleware.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/admin/middleware.go') diff --git a/internal/admin/middleware.go b/internal/admin/middleware.go index 56d4797..60274ad 100644 --- a/internal/admin/middleware.go +++ b/internal/admin/middleware.go @@ -5,8 +5,8 @@ import ( "net/http" ) -// Admin middleware to handle requests to the admin repo. -func AdminHooks(adminSvc *Servicer, next http.Handler) http.Handler { +// Hooks middleware to handle requests to the admin repo. +func Hooks(adminSvc *Servicer, next http.Handler) http.Handler { return http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) { log.Printf("stuffs about to reload %s", "now") next.ServeHTTP(rw, req) -- cgit v1.2.3