|
@@ -1,8 +1,9 @@
|
|
|
package main
|
|
|
|
|
|
import (
|
|
|
- "fmt"
|
|
|
+ "eta/eta_api/controllers"
|
|
|
"eta/eta_api/services/alarm_msg"
|
|
|
+ "fmt"
|
|
|
"runtime"
|
|
|
"time"
|
|
|
|
|
@@ -21,6 +22,10 @@ func main() {
|
|
|
web.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
|
|
|
}
|
|
|
go services.Task()
|
|
|
+
|
|
|
+
|
|
|
+ web.ErrorController(&controllers.ErrorController{})
|
|
|
+
|
|
|
web.BConfig.RecoverFunc = Recover
|
|
|
web.Run()
|
|
|
}
|