Browse Source

update readme with cap. http methods

tags/v0.9.0
jimzhan 9 years ago
parent
commit
5776664cee
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      README.md

+ 2
- 2
README.md View File

@@ -42,7 +42,7 @@ import (

func main() {
app := rex.New()
app.Get("/", func(w http.ResponseWriter, r *http.Request) {
app.GET("/", func(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, "Hello World")
})
app.Run()
@@ -82,7 +82,7 @@ func main() {
env.Set("PORT", 9394)

app := rex.New()
app.Get("/", index)
app.GET("/", index)
app.Run()
}
```

Loading…
Cancel
Save