File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ func NewThumbHandler(service thumb.IThumbService) *ThumbHandler {
2020 }
2121}
2222
23- func (h * ThumbHandler ) RegisterRoutes (router * gin.Engine ) {
23+ func (h * ThumbHandler ) RegisterRoutes (router * gin.RouterGroup ) {
2424 thumbGroup := router .Group ("/thumbs" )
2525 thumbGroup .POST ("" , h .CreateProcess )
2626 thumbGroup .PUT ("/:id" , h .UpdateProcess )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ func (rs RestServer) Serve() {
3737
3838 handler .RegisterLoginHandlers (authorizedGroup )
3939
40- handler .NewThumbHandler (rs .thumbService ).RegisterRoutes (r )
40+ handler .NewThumbHandler (rs .thumbService ).RegisterRoutes (authorizedGroup )
4141
4242 err := r .Run ("0.0.0.0:8080" )
4343 if err != nil {
You can’t perform that action at this time.
0 commit comments