mirror of
https://github.com/Fishwaldo/huma.git
synced 2025-03-15 11:21:42 +00:00
Add GetMux function to Resource to get the Chi Mux
This commit is contained in:
parent
2754f42ebc
commit
9ea4397c40
1 changed files with 5 additions and 0 deletions
|
@ -122,3 +122,8 @@ func (r *Resource) Tags(names ...string) {
|
|||
func (r *Resource) Hidden() {
|
||||
r.hidden = true
|
||||
}
|
||||
|
||||
// GetMux gets the Chi router for this resource.
|
||||
func (r *Resource) GetMux() chi.Router {
|
||||
return r.mux
|
||||
}
|
Loading…
Add table
Reference in a new issue