Skip to content

Commit

Permalink
Merge pull request #37 from ariebrainware/feature/revamp_edit_password
Browse files Browse the repository at this point in the history
update readme and endpoint description
  • Loading branch information
ariebrainware authored Oct 28, 2019
2 parents 7853882 + a0c16c7 commit b431cca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b431cca

Please sign in to comment.