mirror of https://gitee.com/topnuomi/goweb
修改目录名称
This commit is contained in:
parent
bb0552900e
commit
c6cd7cd104
8
main.go
8
main.go
|
@ -2,7 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"web/database"
|
||||
"web/route"
|
||||
"web/routes"
|
||||
"web/server"
|
||||
)
|
||||
|
||||
|
@ -12,9 +12,9 @@ func main() {
|
|||
database.InitDB()
|
||||
|
||||
// 注册模块路由
|
||||
route.RegistIndex(s)
|
||||
route.RegistMember(s)
|
||||
route.RegistShop(s)
|
||||
routes.RegistIndex(s)
|
||||
routes.RegistMember(s)
|
||||
routes.RegistShop(s)
|
||||
|
||||
s.Listen(":8080")
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package route
|
||||
package routes
|
||||
|
||||
import (
|
||||
"web/controllers"
|
|
@ -1,4 +1,4 @@
|
|||
package route
|
||||
package routes
|
||||
|
||||
import (
|
||||
"web/controllers/member"
|
|
@ -1,4 +1,4 @@
|
|||
package route
|
||||
package routes
|
||||
|
||||
import (
|
||||
"web/controllers/shop"
|
Loading…
Reference in New Issue