Skip to content

Commit 8298536

Browse files
authored
Use legacy call of generateOcsUrl
1 parent caaee18 commit 8298536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/src/services/Templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const getTemplates = async function() {
3636
* @param {string} templateType The template type e.g 'user'
3737
*/
3838
export const createFromTemplate = async function(filePath, templatePath, templateType) {
39-
const response = await axios.post(generateOcsUrl('apps/files/api/v1/templates/create'), {
39+
const response = await axios.post(generateOcsUrl('apps/files/api/v1/templates', 2) + 'create', {
4040
filePath,
4141
templatePath,
4242
templateType,

0 commit comments

Comments
 (0)