package router import ( "github.com/gin-gonic/gin" "github.com/pterodactyl/wings/router/middleware" "github.com/pterodactyl/wings/server" ) // ExtractServer returns the server instance from the gin context. If there is // no server set in the context (e.g. calling from a controller not protected // by ServerExists) this function will panic. // // This function is deprecated. Use middleware.ExtractServer. func ExtractServer(c *gin.Context) *server.Server { return middleware.ExtractServer(c) }