You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
243 B

  1. package router
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "main/controller/api"
  5. )
  6. func InitBaseRouter(Router *gin.Engine) {
  7. UserRouter := Router.Group("base")
  8. {
  9. UserRouter.POST("regist", api.Regist)
  10. UserRouter.POST("login", api.Login)
  11. }
  12. }