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

router.go 358 B

1234567891011121314151617181920212223
  1. package routers
  2. import (
  3. "github.com/astaxie/beego"
  4. "github.com/casbin/casvisor/controllers"
  5. )
  6. func init() {
  7. initAPI()
  8. }
  9. func initAPI() {
  10. ns :=
  11. beego.NewNamespace("/api",
  12. beego.NSInclude(
  13. &controllers.ApiController{},
  14. ),
  15. )
  16. beego.AddNamespace(ns)
  17. beego.Router("/api/get-top-posts", &controllers.ApiController{}, "POST:GetTopPosts")
  18. }

No Description

Contributors (1)