ant0ine/go-json-rest — pull request #50 by klavs (2014-03-29 18:55:55+00:00)
Title: Add support for URL prefixes

Usage example:

handler := rest.ResourceHandler{}
handler.SetRoutes(
rest.Route{"GET"	,"/countries"	,GetAllCountries},
rest.Route{"POST"	,"/countries"	,PostCountry},
rest.Route{"GET"	,"/countries/:code"	,GetCountry},
rest.Route{"DELETE"	,"/countries/:code"	,DeleteCountry},
)
handler.Handle("/api/")
http.ListenAndServe(":12345", nil)