Skip to content

Instantly share code, notes, and snippets.

@Bebbolus
Last active November 30, 2018 16:50
Show Gist options
  • Save Bebbolus/d6efbf999a62ebc1eef2e170b4533114 to your computer and use it in GitHub Desktop.
Save Bebbolus/d6efbf999a62ebc1eef2e170b4533114 to your computer and use it in GitHub Desktop.
//source routes configuration struct to load from the json configuration file
type routes struct {
Endpoints []struct {
Controller string `json:"controller"`
Middlewares []struct {
Handler string `json:"handler"`
Params string `json:"params"`
} `json:"middlewares"`
Path string `json:"path"`
} `json:"endpoints"`
}
var RoutesConf routes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment