-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only delete is excluded from route groups. #97
Comments
Paths using |
You can Tag manually the routes with Automatic Tags are based on return type, not on the first Does it seems more logical for you to tag them by the first slash ? Should we have an option to choose between the 2 options (return type VS first slash) ? Think about the |
Obviously books group tag, |
I'll talk to the team about that. We might be doing this for the next release :) |
func (rs FilesRessources) Routes(s *fuego.Server) {
filesGroup := fuego.Group(s, "/files")
fuego.Get(filesGroup, "/", rs.getAllFiles)
fuego.Post(filesGroup, "/", rs.postFiles)
fuego.GetStd(filesGroup, "/{id}/{name}", rs.downloadFile).Tags("files")
fuego.Get(filesGroup, "/{id}", rs.getFiles)
fuego.Delete(filesGroup, "/{id}", rs.deleteFiles)
} .tags worked fine. thank you |
ref: #96 (comment)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Naturally, it exists in the same group including
delete
Screenshots
Framework version (please check if it happens with the last Fuego version before posting):
latest
Go version (please check if it happens with the last Go version before posting):
go version go1.22.1 linux/amd64
The text was updated successfully, but these errors were encountered: