Make it so the playground can decide which index file to serve. (#223)

* Make it so the playground can decide which index file to serve.
Also remove special index-nw.html and use the current playground config to
decide if to show the windows instances option or not.

* Give a better name to the struct
This commit is contained in:
Jonathan Leibiusky
2017-11-22 16:47:01 -03:00
committed by Marcos Nils
parent 2e039a4e60
commit f277e3776c
7 changed files with 43 additions and 317 deletions

View File

@@ -79,5 +79,6 @@ type Playground struct {
AllowWindowsInstances bool `json:"allow_windows_instances" bson:"allow_windows_instances"`
DefaultSessionDuration time.Duration `json:"default_session_duration" bson:"default_session_duration"`
Extras PlaygroundExtras `json:"extras" bson:"extras"`
IndexFile string `json:"index_file" bson:"index_file"`
Tasks []string `json:"tasks" bson:"tasks"`
}