mirror of https://github.com/gofiber/fiber.git
parent
bd4f1538e0
commit
d277bbfce3
2
app.go
2
app.go
|
@ -640,7 +640,7 @@ func (app *App) Use(args ...interface{}) Router {
|
|||
// Get registers a route for GET methods that requests a representation
|
||||
// of the specified resource. Requests using GET should only retrieve data.
|
||||
func (app *App) Get(path string, handlers ...Handler) Router {
|
||||
return app.Add(MethodHead, path, handlers...).Add(MethodGet, path, handlers...)
|
||||
return app.Head(path, handlers...).Add(MethodGet, path, handlers...)
|
||||
}
|
||||
|
||||
// Head registers a route for HEAD methods that asks for a response identical
|
||||
|
|
Loading…
Reference in New Issue