func (h *resource) addToAllowedMethods(method string) {
	if h.allowedMethods == "" {
		h.allowedMethods = method
	} else {
		h.allowedMethods = h.allowedMethods + ", " + method
	}
}
addToAllowedMethods - Add a method to the allowed methods for this route
package vestigo
import "net/http"
type resource struct {
	Cors           *CorsAccessControl
	Connect        http.HandlerFunc
	Delete         http.HandlerFunc
	Get            http.HandlerFunc
	Patch          http.HandlerFunc
	Post           http.HandlerFunc
	Put            http.HandlerFunc
	Trace          http.HandlerFunc
	Head           http.HandlerFunc
	allowedMethods string
}
func newResource() *resource {
	return &resource{
		Cors:           new(CorsAccessControl),
		allowedMethods: "",
	}
}
func (h *resource) CopyTo(v *resource) {
	*v.Cors = *h.Cors
	v.Get = h.Get
	v.Connect = h.Connect
	v.Delete = h.Delete
	v.Get = h.Get
	v.Patch = h.Patch
	v.Post = h.Post
	v.Put = h.Put
	v.Trace = h.Trace
	v.allowedMethods = h.allowedMethods
}