Example #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)
}
Example #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)
}
Example #3
0
func (this *JSONTemplates) ListPostprocessorTemplates(w *rest.ResponseWriter, r *rest.Request) {
	store.SendJSONFile(w, r, filepath.Join(this.BasePath, "postprocessors", "list.json"))
}
Example #4
0
func (this *JSONTemplates) ListBuilderTemplates(w *rest.ResponseWriter, r *rest.Request) {
	store.SendJSONFile(w, r, filepath.Join(this.BasePath, "builders", "list.json"))
}