diff --git a/.gitignore b/.gitignore index e69de29..97aaa08 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +testData/userDB.ndtl diff --git a/router/router.go b/router/router.go index f0ba53b..7bdaf8d 100644 --- a/router/router.go +++ b/router/router.go @@ -30,19 +30,6 @@ type Route struct { handlerMap map[string]http.Handler } -/* This represents what the server should do with a given request. */ -type ServerTask struct { - /* template and apiFmt are mutually exclusive. */ - template *template.Template - apiFmt string - - /* doWork represents serverside work to fulfill the request. - * This function can be composed any way you see fit when creating - * a route. - */ - doWork func(http.ResponseWriter, *http.Request) -} - func (self *Router) Get(path string, h http.Handler) { self.AddRoute("GET", path, h) }