initial commit 2
This commit is contained in:
20
server/router/authenticateroute/router.go
Normal file
20
server/router/authenticateroute/router.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package authenticateroute
|
||||
|
||||
import (
|
||||
"bitbucket.org/nemt/nemt-portal-api/application/applicationservice"
|
||||
"bitbucket.org/nemt/nemt-portal-api/infra/config"
|
||||
"github.com/labstack/echo"
|
||||
)
|
||||
|
||||
const (
|
||||
portalRoute = "/portal"
|
||||
memberRoute = "/member"
|
||||
)
|
||||
|
||||
// Register authenticate route
|
||||
func Register(r *echo.Group, cfg *config.Config, svc *applicationservice.Service) {
|
||||
ctrl := controllerInstance(cfg, svc)
|
||||
|
||||
r.POST(portalRoute, ctrl.handlePortal)
|
||||
r.POST(memberRoute, ctrl.handleMember)
|
||||
}
|
||||
Reference in New Issue
Block a user