Files
Pointly-Tel/main.go
T
2026-07-30 11:24:40 +08:00

20 lines
411 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package main
import (
"pointly-tel/amap/controller"
commonHttp "pointly-tel/common"
)
func main() {
// 注册 API 路由
commonHttp.RouteRegister([]interface{}{
controller.Poi,
})
// 前端静态文件服务(需先执行 cd web && npm run build
commonHttp.ServeFrontend("web/dist")
// 启动 HTTP 服务(监听 config.yml 中 server.address,默认 :3000
commonHttp.Httpserver.Run()
}