Permettre au client web de rechercher unE membre
This commit is contained in:
parent
719c92a652
commit
e585b65565
4 changed files with 188 additions and 5 deletions
|
@ -70,6 +70,7 @@ var webCmd = &cobra.Command{
|
|||
// Routes
|
||||
|
||||
e.GET("/", webhandlers.GetIndex)
|
||||
e.GET("/membre/", webhandlers.GetMembre)
|
||||
|
||||
// Execution
|
||||
|
||||
|
@ -94,6 +95,12 @@ func init() {
|
|||
"Remote API server key (config:'web.api.key')")
|
||||
viper.BindPFlag("web.api.key", webCmd.Flags().Lookup("web-api-key"))
|
||||
|
||||
// web.api.protocol
|
||||
webCmd.Flags().String(
|
||||
"web-api-protocol", "http",
|
||||
"Remote API server protocol (config:'web.api.protocol')")
|
||||
viper.BindPFlag("web.api.protocol", webCmd.Flags().Lookup("web-api-protocol"))
|
||||
|
||||
// web.api.port
|
||||
webCmd.Flags().Int(
|
||||
"web-api-port", 1312,
|
||||
|
|
Reference in a new issue