server run
This commit is contained in:
parent
8c269b0c2f
commit
0e83ef7bae
15
server/main.go
Normal file
15
server/main.go
Normal file
@ -0,0 +1,15 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo"
|
||||
"github.com/labstack/echo/engine/standard"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func init() {
|
||||
e := echo.New()
|
||||
e.GET("/", func(c echo.Context) error {
|
||||
return c.String(http.StatusOK, "Hi Realize")
|
||||
})
|
||||
go e.Run(standard.New(":5000"))
|
||||
}
|
Loading…
Reference in New Issue
Block a user