Add user list and edit pages.

This commit is contained in:
Yang Luo
2020-10-20 23:14:03 +08:00
parent 88fd1fda47
commit b5eb673c81
19 changed files with 827 additions and 16 deletions

View File

@ -17,11 +17,14 @@ package main
import (
"github.com/astaxie/beego"
"github.com/astaxie/beego/plugins/cors"
"github.com/casdoor/casdoor/object"
_ "github.com/casdoor/casdoor/routers"
)
func main() {
object.InitAdapter()
beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{
AllowOrigins: []string{"*"},
AllowMethods: []string{"GET", "PUT", "PATCH"},