outer.go 294 B

12345678910111213141516
  1. package http
  2. import (
  3. bm "go-common/library/net/http/blademaster"
  4. )
  5. // outerRouter init outer router api path.
  6. func outerRouter(e *bm.Engine) {
  7. // api v1
  8. g := e.Group("/x/point", bm.CORS())
  9. {
  10. g.GET("/info", authSvc.User, pointInfo)
  11. g.GET("/history", authSvc.User, pointHistory)
  12. }
  13. }