add config
This commit is contained in:
3
main.go
3
main.go
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"astra-users/config"
|
||||
"astra-users/handler"
|
||||
"astra-users/model"
|
||||
"github.com/labstack/echo/v4"
|
||||
@@ -48,5 +49,5 @@ func main() {
|
||||
e.DELETE("/:id", h.DeleteUser)
|
||||
e.GET("/health", h.Health)
|
||||
|
||||
e.Logger.Fatal(e.Start(":8081"))
|
||||
e.Logger.Fatal(e.Start(":" + config.Env.Server.Port))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user