123456789101112131415161718 |
- package routers
- import (
- "Cold_Api/conf"
- "Cold_Api/controllers"
- beego "github.com/beego/beego/v2/server/web"
- )
- func init() {
- ns := beego.NewNamespace(conf.Version,
- beego.NSRouter("/DataSource", &controllers.DataSourceController{}, "*:DataSource_Exec"), // 执行sql
- beego.NSRouter("/DataSource/List", &controllers.DataSourceController{}, "*:DataSource_List"), // 数据源列表
- beego.NSRouter("/DataSource/Add", &controllers.DataSourceController{}, "*:DataSource_Add"), // 添加数据源
- beego.NSRouter("/DataSource/Edit", &controllers.DataSourceController{}, "*:DataSource_Edit"), // 编辑数据源
- beego.NSRouter("/DataSource/Del", &controllers.DataSourceController{}, "*:DataSource_Del"), // 删除数据源
- )
- beego.AddNamespace(ns)
- }
|