Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use legacy call of generateOcsUrl
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
artonge authored and nextcloud-command committed Sep 21, 2021
commit 3e5ba67b7afb576836e06eb54e6dc1c2540a216d
2 changes: 1 addition & 1 deletion apps/files/js/dist/templates.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/js/dist/templates.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/src/services/Templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getTemplates = async function() {
* @param {string} templateType The template type e.g 'user'
*/
export const createFromTemplate = async function(filePath, templatePath, templateType) {
const response = await axios.post(generateOcsUrl('apps/files/api/v1/templates/create'), {
const response = await axios.post(generateOcsUrl('apps/files/api/v1/templates', 2) + 'create', {
filePath,
templatePath,
templateType,
Expand Down