Skip to content
Snippets Groups Projects

Ability to upload a document in Dashboard

Merged Alexey Lunin requested to merge 422-upload-documents into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -136,7 +136,7 @@ func buildViamAPI() string {
result += "\n"
}
result += " }, merge(this.config, config));\n" +
result += " }, merge({}, this.config, config));\n" +
"};\n\n"
} else {
splits := strings.Split(url, "/")
@@ -151,7 +151,7 @@ func buildViamAPI() string {
methodStr := splits[len(splits)-1]
result += "ViamAPI.prototype." + packageStr + strings.Title(methodStr) + " = function(config, data) {\n" +
" return axios.post(window.API_HOST + '" + packageStr + "/" + methodStr + "', data, merge(this.config, config));\n" +
" return axios.post(window.API_HOST + '" + packageStr + "/" + methodStr + "', data, merge({}, this.config, config));\n" +
"};\n\n"
}
}
Loading