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