Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Jan 9, 2024
1 parent ba94351 commit d80e6dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion router/usecase/router_usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ func NewRouterUsecase(timeout time.Duration, routerRepository routerredisrepo.Ro

// WithOverwriteRoutesPath sets the overwrite routes path on the router use case.
func WithOverwriteRoutesPath(routerUsecase mvc.RouterUsecase, overwriteRoutesPath string) mvc.RouterUsecase {
routerUsecase.(*routerUseCaseImpl).overwriteRoutesPath = overwriteRoutesPath
useCaseImpl, ok := routerUsecase.(*routerUseCaseImpl)
if !ok {
panic("error casting router use case to router use case impl")
}
useCaseImpl.overwriteRoutesPath = overwriteRoutesPath
return routerUsecase
}

Expand Down

0 comments on commit d80e6dd

Please sign in to comment.