Add proposal approval api endpoint
Change-Id: I3ab864af51735ee7c484df9c66d0b3ec2f6acb36
diff --git a/server/api/api.go b/server/api/api.go
index fd78ee4..ae0af36 100644
--- a/server/api/api.go
+++ b/server/api/api.go
@@ -13,10 +13,10 @@
const HealthCheckPath = "/healthcheck"
type API struct {
- Logger *log.Logger
- Root *gin.Engine
- APIRoot *gin.RouterGroup // 'api/v1'
- Auth *gin.RouterGroup // 'api/v1/auth'
+ Logger *log.Logger
+ Root *gin.Engine
+ APIRoot *gin.RouterGroup // 'api/v1'
+ Proposal *gin.RouterGroup // 'api/v1/proposal'
}
// Init initializes api
@@ -29,6 +29,7 @@
})
apiObj.APIRoot = router.Group(APIURLSuffix)
apiObj.initHealthCheck()
+ apiObj.initProposal()
apiObj.Root.NoRoute(func(c *gin.Context) {
c.JSON(http.StatusNotFound, "Page not found")