Skip to content
Snippets Groups Projects
Unverified Commit f8543ada authored by Christoph Wurst's avatar Christoph Wurst Committed by GitHub
Browse files

Merge pull request #3761 from IchbinkeinReh/fix-aliasservice

Fix saving aliases
parents d03978a5 82d4f1b0
No related branches found
No related tags found
No related merge requests found
......@@ -2,13 +2,12 @@ import { generateUrl } from '@nextcloud/router'
import axios from '@nextcloud/axios'
export const createAlias = async(account, data) => {
const url = generateUrl('/apps/mail/api/aliases')
const url = generateUrl('/apps/mail/api/accounts/{id}/aliases', {
id: account.accountId,
})
return axios
.post(url, {
accountId: account.id,
...data,
})
.post(url, data)
.then((resp) => resp.data)
.catch((e) => {
if (e.response && e.response.status === 400) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment