Base Project
This commit is contained in:
18
cmd/server/main.go
Normal file
18
cmd/server/main.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"wm-backend/global"
|
||||
"wm-backend/internal/routers"
|
||||
_ "wm-backend/internal/services"
|
||||
)
|
||||
|
||||
// @title Warehouse Management API
|
||||
// @version 1.0
|
||||
// @description This is the Warehouse Management API server.
|
||||
// @host localhost:3000
|
||||
// @BasePath /api/v1
|
||||
func main() {
|
||||
r := routers.NewRouter()
|
||||
_ = global.Cfg // ensure config is loaded via init()
|
||||
r.Run(":" + global.Cfg.Server.Port)
|
||||
}
|
||||
Reference in New Issue
Block a user