Skip to content

v3: cmdroute: Add Router.Group() #383

@labi-le

Description

@labi-le

I expect middleware to run for set and delete commands, but in fact I get this behavior for all commands. How can I concretize the execution of the middleware layer?

        bot.AddInteractionHandler(res)
        
	res.AddFunc("stats", res.Stats)
	res.AddFunc("help", res.Help)
	res.AddFunc("get", res.Get)
	res.AddFunc("search", res.Search)

	res.Use(res.CheckAccess)
	res.AddFunc("set", res.Set)
	res.AddFunc("delete", res.Delete)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions