mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Use legacy call of generateOcsUrl
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
caaee18cb0
commit
3e5ba67b7a
3 changed files with 3 additions and 3 deletions
2
apps/files/js/dist/templates.js
vendored
2
apps/files/js/dist/templates.js
vendored
File diff suppressed because one or more lines are too long
2
apps/files/js/dist/templates.js.map
vendored
2
apps/files/js/dist/templates.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue