Skip to content

Commit b572ac3

Browse files
authored
update main.go
added port for the server to listen to and run
1 parent bd40670 commit b572ac3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ func main() {
1919

2020
router.POST("/", PostMethod)
2121
router.GET("/", GetMethod)
22+
listenPort := "4000"
23+
router.Run(":"+listenPort)
2224
}

0 commit comments

Comments
 (0)