Esempio n. 1
0
func (this *JSONTemplates) GetPostprocessorTemplate(w *rest.ResponseWriter, r *rest.Request) {
	postprocessor := r.PathParam("type")
	jsonPath := filepath.Join(this.BasePath, "postprocessors", postprocessor+".json")
	store.SendJSONFile(w, r, jsonPath)
}
Esempio n. 2
0
func (this *JSONTemplates) GetBuilderTemplate(w *rest.ResponseWriter, r *rest.Request) {
	builder := r.PathParam("type")
	jsonPath := filepath.Join(this.BasePath, "builders", builder+".json")
	store.SendJSONFile(w, r, jsonPath)
}
Esempio n. 3
0
func (this *JSONTemplates) ListPostprocessorTemplates(w *rest.ResponseWriter, r *rest.Request) {
	store.SendJSONFile(w, r, filepath.Join(this.BasePath, "postprocessors", "list.json"))
}
Esempio n. 4
0
func (this *JSONTemplates) ListBuilderTemplates(w *rest.ResponseWriter, r *rest.Request) {
	store.SendJSONFile(w, r, filepath.Join(this.BasePath, "builders", "list.json"))
}