We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9ec08d commit 73e6be8Copy full SHA for 73e6be8
web.go
@@ -2,6 +2,7 @@ package main
2
3
import (
4
"fmt"
5
+ "github.com/dchest/captcha"
6
"github.com/go-martini/martini"
7
"github.com/timothyye/vim-tips-web/routers"
8
"net/http"
@@ -15,6 +16,7 @@ func main() {
15
16
routers.Initialize(m)
17
18
http.HandleFunc("/ws", routers.WSHandler)
19
+ http.Handle("/captcha", captcha.Server(captcha.StdWidth, captcha.StdHeight))
20
http.Handle("/", m)
21
22
fmt.Println("Server started...")
0 commit comments