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.
16 lines
349 B
16 lines
349 B
package controller
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"sorbet/internal/entities"
|
|
"sorbet/internal/services/company/request"
|
|
"sorbet/pkg/app"
|
|
)
|
|
|
|
type CompanyController struct {
|
|
app.Controller[entities.Company, request.CompanyUpsertRequest]
|
|
}
|
|
|
|
func (ctr *CompanyController) InitRoutes(r *echo.Group) {
|
|
ctr.RegisterRoutes("/companies", r)
|
|
}
|
|
|