mirror of
https://github.com/labstack/echo.git
synced 2025-01-12 01:22:21 +02:00
33700bfcc2
- Dropped static middleware in favor of Echo#Static & Echo#StaticConfig. - Enhanced middleware chaining. Signed-off-by: Vishal Rana <vr@labstack.com>
22 lines
416 B
Go
22 lines
416 B
Go
package echo
|
|
|
|
import "testing"
|
|
|
|
func TestGroup(t *testing.T) {
|
|
g := New().Group("/group")
|
|
h := func(Context) error { return nil }
|
|
g.Connect("/", h)
|
|
g.Delete("/", h)
|
|
g.Get("/", h)
|
|
g.Head("/", h)
|
|
g.Options("/", h)
|
|
g.Patch("/", h)
|
|
g.Post("/", h)
|
|
g.Put("/", h)
|
|
g.Trace("/", h)
|
|
g.Any("/", h)
|
|
g.Match([]string{GET, POST}, "/", h)
|
|
g.Static("/static", "/tmp")
|
|
g.File("/walle", "_fixture/images//walle.png")
|
|
}
|