Skip to content

Commit 3e5ba67

Browse files
artongenextcloud-command
authored andcommitted
Use legacy call of generateOcsUrl
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent caaee18 commit 3e5ba67

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/files/js/dist/templates.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files/js/dist/templates.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)