| 123456789101112131415161718192021222324 |
- package routers
- import (
- "git.qianqiusoft.com/qianqiusoft/light-apiengine/controllers/gen"
- "git.qianqiusoft.com/qianqiusoft/light-apiengine/engine"
- )
- func init(){
- addRegisterHandler(registerSystemRouter)
- }
- func registerSystemRouter(e *engine.ApiEngine){
- api:=e.GinEngine.Group("/api")
- system:=api.Group("/v1/system")
- ctrler := gen.NewSystemController(e.OrmEngine)
- system.GET("/login", ctrler.Login)
- system.POST("/login", ctrler.Login)
- system.GET("/logout", ctrler.Logout)
- system.POST("/logout", ctrler.Logout)
- }
|