Simplify the setup of bundled assets (#436)
1. Move the generated file to handlers - it better belongs there 2. Ensure that all file serves are also handled by the asset store Co-authored-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
@@ -43,7 +43,7 @@ func ListProviders(rw http.ResponseWriter, req *http.Request) {
|
||||
}
|
||||
|
||||
providers := []string{}
|
||||
for name, _ := range config.Providers[playground.Id] {
|
||||
for name := range config.Providers[playground.Id] {
|
||||
providers = append(providers, name)
|
||||
}
|
||||
json.NewEncoder(rw).Encode(providers)
|
||||
|
||||
Reference in New Issue
Block a user