Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static generateURLs(cozyUrl) {
const commonOpts = { cozyUrl, slug: 'banks' }
return {
banksUrl: generateUniversalLink({ ...commonOpts }),
balancesUrl: generateUniversalLink({
...commonOpts,
nativePath: '/balances'
}),
transactionsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/transactions'
}),
settingsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/settings/configuration'
}),
healthReimbursementsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/balances/reimbursements'
})
}
}
static generateURLs(cozyUrl) {
const commonOpts = { cozyUrl, slug: 'banks' }
return {
banksUrl: generateUniversalLink({ ...commonOpts }),
balancesUrl: generateUniversalLink({
...commonOpts,
nativePath: '/balances'
}),
transactionsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/transactions'
}),
settingsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/settings/configuration'
}),
healthReimbursementsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/balances/reimbursements'
})
const commonOpts = { cozyUrl, slug: 'banks' }
return {
banksUrl: generateUniversalLink({ ...commonOpts }),
balancesUrl: generateUniversalLink({
...commonOpts,
nativePath: '/balances'
}),
transactionsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/transactions'
}),
settingsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/settings/configuration'
}),
healthReimbursementsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/balances/reimbursements'
})
}
}
static generateURLs(cozyUrl) {
const commonOpts = { cozyUrl, slug: 'banks' }
return {
banksUrl: generateUniversalLink({ ...commonOpts }),
balancesUrl: generateUniversalLink({
...commonOpts,
nativePath: '/balances'
}),
transactionsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/transactions'
}),
settingsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/settings/configuration'
}),
healthReimbursementsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/balances/reimbursements'
})
}
}
static generateURLs(cozyUrl) {
const commonOpts = { cozyUrl, slug: 'banks' }
return {
banksUrl: generateUniversalLink({ ...commonOpts }),
balancesUrl: generateUniversalLink({
...commonOpts,
nativePath: '/balances'
}),
transactionsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/transactions'
}),
settingsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/settings/configuration'
}),
healthReimbursementsUrl: generateUniversalLink({
...commonOpts,
nativePath: '/balances/reimbursements'
})
}