You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
485 B
25 lines
485 B
package resource
|
|
|
|
import (
|
|
"sorbet/internal/services/resource/controller"
|
|
"sorbet/pkg/crud"
|
|
)
|
|
|
|
type Service struct{}
|
|
|
|
func (*Service) Name() string {
|
|
return "resource"
|
|
}
|
|
|
|
func (*Service) Priority() int {
|
|
return 2
|
|
}
|
|
|
|
func (*Service) Init(ctx *crud.Context) error {
|
|
ctx.Routes(&controller.ResourceController{})
|
|
ctx.Routes(&controller.ResourceCategoryController{})
|
|
return nil
|
|
}
|
|
|
|
func (s *Service) Bootstrap() error { return nil }
|
|
func (s *Service) Destroy() error { return nil }
|
|
|