File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,11 @@ make restart
5353
5454### 运行
5555
56+ 先配置``` config/env.go ``` 中相关配置,并导入数据sql``` connections/migrations/example.sql ``` ,然后运行:
5657```
5758make
5859```
60+
5961浏览器访问 http://localhost:4000/api/index
6062
6163## 项目部署
Original file line number Diff line number Diff line change 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 {
You can’t perform that action at this time.
0 commit comments