Skip to content

Commit fb93a9e

Browse files
authored
🐛 fix: controller (#68)
1 parent e7bbaf0 commit fb93a9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/response/controller/simple.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ func NewSimple(options ...Option) *Simple {
3737

3838
// Path route path
3939
func (e *Simple) Path() string {
40+
if e.options.model == nil {
41+
return ""
42+
}
4043
return strings.ReplaceAll(strings.ToLower(mgm.CollName(e.options.model)), "_", "-")
4144
}
4245

0 commit comments

Comments
 (0)