initial commit 2
This commit is contained in:
21
server/router/profileroute/router.go
Normal file
21
server/router/profileroute/router.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package profileroute
|
||||
|
||||
import (
|
||||
"bitbucket.org/nemt/nemt-portal-api/application/applicationservice"
|
||||
"bitbucket.org/nemt/nemt-portal-api/infra/config"
|
||||
"github.com/labstack/echo"
|
||||
)
|
||||
|
||||
const (
|
||||
rootRoute = ""
|
||||
keyRoute = "/:key"
|
||||
orgRoute = "/org/:org_key"
|
||||
)
|
||||
|
||||
func Register(r *echo.Group, cfg *config.Config, svc *applicationservice.Service) {
|
||||
ctrl := controllerInstance(cfg, svc)
|
||||
|
||||
r.GET(rootRoute, ctrl.handle)
|
||||
r.GET(keyRoute, ctrl.handleKey)
|
||||
r.GET(orgRoute, ctrl.handleOrg)
|
||||
}
|
||||
Reference in New Issue
Block a user