feat(api): add phone number registration endpoint and update related logic
This commit is contained in:
@@ -224,6 +224,7 @@ func SetupWhatsAppRoutes(router *mux.Router, wh WhatsHookedInterface, distFS fs.
|
||||
router.HandleFunc("/api/phone-numbers", h.Auth(h.ListPhoneNumbers))
|
||||
router.HandleFunc("/api/phone-numbers/request-code", h.Auth(h.RequestVerificationCode)).Methods("POST")
|
||||
router.HandleFunc("/api/phone-numbers/verify-code", h.Auth(h.VerifyCode)).Methods("POST")
|
||||
router.HandleFunc("/api/phone-numbers/register", h.Auth(h.RegisterPhoneNumber)).Methods("POST")
|
||||
|
||||
// Media management (with auth)
|
||||
router.HandleFunc("/api/media/upload", h.Auth(h.UploadMedia)).Methods("POST")
|
||||
|
||||
Reference in New Issue
Block a user