diff options
| author | Max Resnick <max@ofmax.li> | 2024-02-12 21:16:48 -0800 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2024-02-17 22:28:39 -0800 |
| commit | 3db63367ef110e7f4a245cde61471e232e86339c (patch) | |
| tree | 7be4be99ab5953f8d7beb1c613b0d0bc64db6c65 /internal/admin/middleware.go | |
| parent | 45a9f3814c14b41b93e47ae4cbc3f50c34d94991 (diff) | |
| download | go-git-server-3db63367ef110e7f4a245cde61471e232e86339c.tar.gz | |
fix: fix up tests and linting
Diffstat (limited to '')
| -rw-r--r-- | internal/admin/middleware.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |