Skip to content

Commit 7233ced

Browse files
author
陈弘桂
committed
make clear
1 parent 66b961c commit 7233ced

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README_CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ make restart
5353

5454
### 运行
5555

56+
先配置```config/env.go```中相关配置,并导入数据sql```connections/migrations/example.sql```,然后运行:
5657
```
5758
make
5859
```
60+
5961
浏览器访问 http://localhost:4000/api/index
6062

6163
## 项目部署

routers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/gin-gonic/gin"
77
"morningo/filters/auth"
88
"morningo/filters"
9-
"morningo/routes"
9+
routeRegister "morningo/routes"
1010
// proxy "github.com/chenhg5/gin-reverseproxy"
1111
)
1212

@@ -27,7 +27,7 @@ func initRouter() *gin.Engine {
2727
router.Use(auth.RegisterGlobalAuthDriver("cookie", "web_auth")) // 全局auth cookie
2828
router.Use(auth.RegisterGlobalAuthDriver("jwt", "jwt_auth")) // 全局auth jwt
2929

30-
routes.RegisterApiRouter(router)
30+
routeRegister.RegisterApiRouter(router)
3131

3232
// ReverseProxy
3333
// router.Use(proxy.ReverseProxy(map[string] string {

0 commit comments

Comments
 (0)