feat: add go backend API docs

Signed-off-by: Kininaru <shiftregister233@outlook.com>
This commit is contained in:
Kininaru
2021-03-29 23:40:25 +08:00
parent 5c49693bc0
commit 3a13b8e73c
27 changed files with 2578 additions and 7 deletions

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// @APIVersion 1.0.0
// @Title Casdoor API
// @Description Documentation of Casdoor API
// @Contact admin@casbin.org
package routers
import (
@ -27,8 +31,10 @@ func init() {
func initAPI() {
ns :=
beego.NewNamespace("/api",
beego.NSInclude(
&controllers.ApiController{},
beego.NSNamespace("/api",
beego.NSInclude(
&controllers.ApiController{},
),
),
)
beego.AddNamespace(ns)