func NewRoute(name, pattern string, provider Provider, isActive bool) *Route {
	return &Route{
		Name:     name,
		Pattern:  pattern,
		Provider: provider.Name(),
		IsActive: isActive,
		provider: provider,
		regex:    regexp.MustCompile(pattern),
	}
}
NewRoute creates a new instance of the Route.
package model
import "regexp"
type Route struct {
	ID       int64  `json:"-"`
	Name     string `json:"name"`
	Pattern  string `json:"pattern"`
	Provider string `json:"provider"`
	From     string `json:"from" db:"fromName"`
	IsActive bool   `json:"is_active" db:"isActive"`
	provider Provider
	regex    *regexp.Regexp
}