fixed API documentation for send endpoints

This commit is contained in:
Bernhard B
2020-07-10 22:01:55 +02:00
parent 80d9c15d91
commit d289b862d5
4 changed files with 8 additions and 8 deletions

View File

@@ -404,7 +404,7 @@ func (a *Api) VerifyRegisteredNumber(c *gin.Context) {
// @Success 201 {string} string "OK"
// @Failure 400 {object} Error
// @Param data body SendMessageV1 true "Input Data"
// @Router /v1/send/ [post]
// @Router /v1/send [post]
// @Deprecated
func (a *Api) Send(c *gin.Context) {
@@ -431,7 +431,7 @@ func (a *Api) Send(c *gin.Context) {
// @Success 201 {string} string "OK"
// @Failure 400 {object} Error
// @Param data body SendMessageV2 true "Input Data"
// @Router /v2/send/ [post]
// @Router /v2/send [post]
func (a *Api) SendV2(c *gin.Context) {
var req SendMessageV2
err := c.BindJSON(&req)