tsk-11: Added endpoint to get Contact (#17)
Closes #11 Reviewed-on: phoenix/textsender-api#17 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
@@ -75,6 +75,7 @@ func main() {
|
||||
router.Use(mdlware.JSONContentType)
|
||||
|
||||
router.Handle(endpoint.ADD_CONTACT_ENDPOINT, mdlware.AuthMiddleware(jwtService)(http.HandlerFunc(contactHandler.AddContact)))
|
||||
router.Handle(endpoint.GET_CONTACT, mdlware.AuthMiddleware(jwtService)(http.HandlerFunc(contactHandler.GetContact)))
|
||||
router.Handle(endpoint.ADD_MESSAGE, mdlware.AuthMiddleware(jwtService)(http.HandlerFunc(messageHandler.AddMessage)))
|
||||
|
||||
// Start server
|
||||
|
||||
Reference in New Issue
Block a user