aboutsummaryrefslogtreecommitdiff
path: root/core.go
diff options
context:
space:
mode:
authorDoug Black <dblack@twilio.com>2014-01-26 09:32:11 -0800
committerDoug Black <dblack@twilio.com>2014-01-26 09:32:11 -0800
commit87a21188bddf8654d2eb8850003a8ceb459a4439 (patch)
tree27e2a76707ab68560d0dc9ae4d9053c9a539ef35 /core.go
parentfixes from comments (diff)
downloadsleepy-87a21188bddf8654d2eb8850003a8ceb459a4439.tar.gz
sleepy-87a21188bddf8654d2eb8850003a8ceb459a4439.tar.bz2
sleepy-87a21188bddf8654d2eb8850003a8ceb459a4439.zip
use built in type
Diffstat (limited to 'core.go')
-rw-r--r--core.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/core.go b/core.go
index cf34545..c8d7ca9 100644
--- a/core.go
+++ b/core.go
@@ -27,9 +27,7 @@ func (api *Api) Abort(rw http.ResponseWriter, statusCode int) {
rw.WriteHeader(statusCode)
}
-type HandleFunc func(http.ResponseWriter, *http.Request)
-
-func (api *Api) requestHandler(resource Resource) HandleFunc {
+func (api *Api) requestHandler(resource Resource) http.HandlerFunc {
return func(rw http.ResponseWriter, request *http.Request) {
var data interface{}
bgstack15