Skip to content

Commit

Permalink
🐛 fix: controller (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwnmengjing authored Dec 1, 2023
1 parent e7bbaf0 commit fb93a9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/response/controller/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ func NewSimple(options ...Option) *Simple {

// Path route path
func (e *Simple) Path() string {
if e.options.model == nil {
return ""
}
return strings.ReplaceAll(strings.ToLower(mgm.CollName(e.options.model)), "_", "-")
}

Expand Down

0 comments on commit fb93a9e

Please sign in to comment.