Merge pull request #99 from loongmxbt/patch-1

Update README.md
This commit is contained in:
Manu Mtz.-Almeida 2014-08-21 16:12:03 +02:00
commit 45fcd18064

View File

@ -324,12 +324,13 @@ func main() {
Issuing a HTTP redirect is easy:
```r.GET("/test", func(c *gin.Context) {
```go
r.GET("/test", func(c *gin.Context) {
c.Redirect(301, "http://www.google.com/")
})
Both internal and external locations are supported.
```
Both internal and external locations are supported.
#### Custom Middlewares