Dane caused this monstrosity to occur.. Port over remaining transfer/archive code to gin, delete http.go

This commit is contained in:
Matthew Penner
2020-04-06 13:49:49 -06:00
parent 03311ecf03
commit 718b126baf
7 changed files with 106 additions and 167 deletions

View File

@@ -46,7 +46,7 @@ func AuthorizationMiddleware(c *gin.Context) {
}
// Helper function to fetch a server out of the servers collection stored in memory.
func GetServer (uuid string) *server.Server {
func GetServer(uuid string) *server.Server {
return server.GetServers().Find(func(s *server.Server) bool {
return uuid == s.Uuid
})
@@ -64,4 +64,4 @@ func ServerExists(c *gin.Context) {
}
c.Next()
}
}