Skip to content

router not found #1754

Closed
Closed
@Duslia

Description

@Duslia

Code:
`

func main() {
    h := echo.New()
    h.GET("/a/:b/c", func(ctx echo.Context) error{
    	return ctx.String(http.StatusOK, "Hello, World!")
    })
    h.GET("/a/c/d", func(ctx echo.Context) error{
	return ctx.String(http.StatusOK, "Hello, World!")
    })
    h.GET("/:e/c/f", func(ctx echo.Context)error {
	return ctx.String(http.StatusOK, "Hello, World!")
    })
    h.Logger.Fatal(h.Start(":1323"))
}

`
When I send /a/c/f, it will return not found.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions