Skip to content

Instantly share code, notes, and snippets.

@Mr-Malomz
Created October 21, 2022 15:31
Show Gist options
  • Save Mr-Malomz/50623b52b503b8e93f5d5477514ef52e to your computer and use it in GitHub Desktop.
Save Mr-Malomz/50623b52b503b8e93f5d5477514ef52e to your computer and use it in GitHub Desktop.
package api
import "github.com/gin-gonic/gin"
type Config struct {
Router *gin.Engine
}
//modify below
func (app *Config) Routes() {
app.Router.POST("/otp", app.sendSMS())
app.Router.POST("/verifyOTP", app.verifySMS())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment