login.go 235 B

1234567891011121314
  1. package Router
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "goLoad1/Controllers"
  5. )
  6. func Login(r *gin.Engine) {
  7. user := r.Group("/user")
  8. {
  9. user.POST("/register", Controllers.RegisterInfo{}.RegisterController)
  10. user.POST("/login")
  11. }
  12. }