Skip to content

Ability to use middleware #8

Description

@ishehata

create a new function that adds a middleware to the router.

could be something like

router.Before(someMiddlewareFunc)
router.After(someMiddlewareFunc)

probably each route should have a way to add a before/after middleware to it.

router.Get("/settings", HandlerFunc, [authMiddleware], [LogMiddleware])

or

router.Get("/settings", HandlerFunc).Before([authMiddleware]).After([LogMiddleware])

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions