Last active
November 30, 2018 16:50
-
-
Save Bebbolus/d6efbf999a62ebc1eef2e170b4533114 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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