readme: small fixes
This commit is contained in:
parent
bf1ecfcf70
commit
c3ac6f9d14
@ -28,7 +28,7 @@ func main() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Listen and server on 0.0.0.0:8080
|
// Listen and server on 0.0.0.0:8080
|
||||||
r.Run(":80")
|
r.Run(":8080")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ func main() {
|
|||||||
r.POST("/somePost", posting)
|
r.POST("/somePost", posting)
|
||||||
r.PUT("/somePut", putting)
|
r.PUT("/somePut", putting)
|
||||||
r.DELETE("/someDelete", deleting)
|
r.DELETE("/someDelete", deleting)
|
||||||
r.PATCH("/somePATCH", patching)
|
r.PATCH("/somePatch", patching)
|
||||||
|
|
||||||
// Listen and server on 0.0.0.0:8080
|
// Listen and server on 0.0.0.0:8080
|
||||||
r.Run(":8080")
|
r.Run(":8080")
|
||||||
@ -82,7 +82,7 @@ func main() {
|
|||||||
v2 := r.Group("/v2")
|
v2 := r.Group("/v2")
|
||||||
{
|
{
|
||||||
v2.POST("/login", loginEndpoint)
|
v2.POST("/login", loginEndpoint)
|
||||||
v2.POST("/submit"", submitEndpoint)
|
v2.POST("/submit", submitEndpoint)
|
||||||
v2.POST("/read"", readEndpoint)
|
v2.POST("/read"", readEndpoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -287,4 +287,4 @@ func main() {
|
|||||||
}
|
}
|
||||||
s.ListenAndServe()
|
s.ListenAndServe()
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user