summaryrefslogtreecommitdiffhomepage
path: root/api/rest.go
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-01-07 10:30:05 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-01-07 10:30:05 +0900
commit3371547e00ded7a9c329ccf84827a55dd7d7d084 (patch)
tree929569ece6e5aa6f012353f0807b680776b3f70c /api/rest.go
parentdc9de3022b721bdb9d6332a641d55097754390d0 (diff)
rest: specified HTTP method
Diffstat (limited to 'api/rest.go')
-rw-r--r--api/rest.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/rest.go b/api/rest.go
index 29af6d65..2fba4496 100644
--- a/api/rest.go
+++ b/api/rest.go
@@ -115,7 +115,7 @@ func (rs *RestServer) Serve() {
// r.HandleFunc(adjRibOut+"/{"+PARAM_REMOTE_PEER_ADDR+"}", rs.AdjRibOut).Methods("GET")
r.HandleFunc(neighbor+"/{"+PARAM_REMOTE_PEER_ADDR+"}/"+"local-rib", rs.NeighborLocalRib).Methods("GET")
// stats
- r.HandleFunc(STATS, stats_api.Handler)
+ r.HandleFunc(STATS, stats_api.Handler).Methods("GET")
// Handler when not found url
r.NotFoundHandler = http.HandlerFunc(NotFoundHandler)