You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Configuration : struct of the configuration of the routes.
type Configuration struct {
Routes map[string]Route `yaml:"routes"` // The index is the unique key of the route (i.e. "account.registration").
}
// Route : struct of a web route
type Route struct {
RelativePaths map[string]string `yaml:"paths"`
AbsolutePaths map[string]string `yaml:"-"` // The index is the locale of the route (i.e. "fr-fr"), the value is the localized route (i.e. "http://.../account/registration").
Sitemap html.Sitemap `yaml:"sitemap"`
}
// NewConfiguration : returns a Configuration struct.