mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 11:52:41 +00:00
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
|
// Get registers a route for GET methods that requests a representation
|
||||||
// of the specified resource. Requests using GET should only retrieve data.
|
// of the specified resource. Requests using GET should only retrieve data.
|
||||||
func (app *App) Get(path string, handlers ...Handler) Router {
|
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
|
// Head registers a route for HEAD methods that asks for a response identical
|
||||||
|
Loading…
x
Reference in New Issue
Block a user