Update server address in main.go
This commit is contained in:
2
main.go
2
main.go
@ -56,5 +56,5 @@ func main() {
|
|||||||
apiGroup.GET("/sse", api.SSE)
|
apiGroup.GET("/sse", api.SSE)
|
||||||
apiGroup.POST("/sendsse", api.SSEDemoSend)
|
apiGroup.POST("/sendsse", api.SSEDemoSend)
|
||||||
|
|
||||||
log.Fatal(http.ListenAndServe("127.0.0.1:3000", router))
|
log.Fatal(http.ListenAndServe(":3000", router))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user