Skip to content

Commit

Permalink
update support adding routes at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
urionz committed May 28, 2024
1 parent cd1ad62 commit 7fe8f5a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,6 @@ func (app *App) AddRoute(
routingFunction router.RoutingFunc,
) error {
if app.router != nil {
if app.running {
return constants.ErrChangeRouteWhileRunning
}
app.router.AddRoute(serverType, routingFunction)
} else {
return constants.ErrRouterNotInitialized
Expand Down

0 comments on commit 7fe8f5a

Please sign in to comment.