Skip to content

net/ghttp: router method definition error at Standard Router #4054

Open
@oldme-git

Description

@oldme-git

Go version

go version go1.23.4 windows/amd64

GoFrame version

2.8.2

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

type ListReq struct {
	g.Meta `path:"article/list" method:"all"`
}
:8000   | ALL | /app/article

What did you see happen?

CURL GET OK
CURL POST OK
CURL PUT OK

What did you expect to see?

CURL GET OK
CURL POST NOT FOUND
CURL PUT NOT FOUND

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIt is confirmed a bug, but don't worry, we'll handle it.cannot reproduceWe cannot reproduce it, it might resolved in new version or you should give more details.need more details

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions