repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
e52ab6f
parent
f71a10d
author
Antonio Mika
date
2022-08-28 04:05:25 +0000 UTC
Move logging before auth
4 files changed,  +4, -4
M cmd/imgs/ssh/main.go
+1, -1
 1@@ -43,8 +43,8 @@ func createRouter(cfg *shared.ConfigSite, handler utils.CopyFromClientHandler) p
 2 			scp.Middleware(handler),
 3 			wishrsync.Middleware(handler),
 4 			bm.Middleware(cms.Middleware(&cfg.ConfigCms, cfg)),
 5-			lm.Middleware(),
 6 			auth.Middleware(handler),
 7+			lm.Middleware(),
 8 		}
 9 	}
10 }
M cmd/lists/ssh/main.go
+1, -1
 1@@ -42,8 +42,8 @@ func createRouter(handler *filehandlers.ScpUploadHandler) proxy.Router {
 2 			scp.Middleware(handler),
 3 			wishrsync.Middleware(handler),
 4 			bm.Middleware(cms.Middleware(&handler.Cfg.ConfigCms, handler.Cfg)),
 5-			lm.Middleware(),
 6 			auth.Middleware(handler),
 7+			lm.Middleware(),
 8 		}
 9 	}
10 }
M cmd/pastes/ssh/main.go
+1, -1
 1@@ -42,8 +42,8 @@ func createRouter(handler *filehandlers.ScpUploadHandler) proxy.Router {
 2 			scp.Middleware(handler),
 3 			wishrsync.Middleware(handler),
 4 			bm.Middleware(cms.Middleware(&handler.Cfg.ConfigCms, handler.Cfg)),
 5-			lm.Middleware(),
 6 			auth.Middleware(handler),
 7+			lm.Middleware(),
 8 		}
 9 	}
10 }
M cmd/prose/ssh/main.go
+1, -1
 1@@ -42,8 +42,8 @@ func createRouter(handler *filehandlers.ScpUploadHandler) proxy.Router {
 2 			scp.Middleware(handler),
 3 			wishrsync.Middleware(handler),
 4 			bm.Middleware(cms.Middleware(&handler.Cfg.ConfigCms, handler.Cfg)),
 5-			lm.Middleware(),
 6 			auth.Middleware(handler),
 7+			lm.Middleware(),
 8 		}
 9 	}
10 }