diff --git a/README.md b/README.md index 1f6df08..6fc6ba2 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ Pay your bill easily! | /user/signout | GET | Sign out user or logout | | /user-paylist/:id | PUT | Update user-paylist status(complete or not) | | /users/refresh-token | POST | Refresh Expired Token | +| /editpassword/:id | PUT | Handling user change password | +| /addsaldo | POST | Add User Balance | ## Database Design diff --git a/main.go b/main.go index 8944494..0900bf8 100644 --- a/main.go +++ b/main.go @@ -36,12 +36,15 @@ func main() { {Method: "PUT", URL: "/user-paylist/:id", Description: "Update User-Paylist by ID"}, {Method: "GET", URL: "/user/signout", Description: "Sign Out / Logout"}, {Method: "POST", URL: "/users/refresh-token", Description: "Refresh Expired Token"}, + {Method: "PUT", URL: "/editpassword/:id", Description: "Edit user password"}, + {Method: "PUT", URL: "/status/:id", Description: "Update user-paylist status"}, + {Method: "POST", URL: "/addsaldo", Description: "Add User Saldo"}, } router.GET("/", func(c *gin.Context) { util.CallSuccessOK(c, "Paylist-API available endpoint", listEndpoint) }) - + router.GET("/paylist", ep.Auth, ep.FetchAllPaylist) router.GET("/paylist/:id", ep.Auth, ep.FetchSinglePaylist) router.POST("/paylist", ep.Auth, ep.CreateUserPaylist)