Skip to content

Commit 73e6be8

Browse files
committed
Add captcha package
1 parent e9ec08d commit 73e6be8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web.go

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"fmt"
5+
"github.com/dchest/captcha"
56
"github.com/go-martini/martini"
67
"github.com/timothyye/vim-tips-web/routers"
78
"net/http"
@@ -15,6 +16,7 @@ func main() {
1516
routers.Initialize(m)
1617

1718
http.HandleFunc("/ws", routers.WSHandler)
19+
http.Handle("/captcha", captcha.Server(captcha.StdWidth, captcha.StdHeight))
1820
http.Handle("/", m)
1921

2022
fmt.Println("Server started...")

0 commit comments

Comments
 (0)