Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shuitai committed Dec 9, 2020
1 parent 5090baa commit 8e58069
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions restx/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ func (s *engine) Start() error {
s.application.Use(logger.New(logger.Config{
TimeFormat: "2006-01-02T15:04:05",
}))

for _, middleware := range s.middlewares {
s.application.Use(middleware)
}

contextPath := s.conf.ContextPath
group := s.application.Group(contextPath)
for _, r := range s.routes {
Expand Down

0 comments on commit 8e58069

Please sign in to comment.