MT#65343 Use "resource" for API request 'otpsecret'

"apiGet" method adds "/" at the end of the URL
when using resource. All API v1 URL requests
need to end with a "/" or the backend redirects
them automatically.

Change-Id: Icfa49a4486da428c01cf1b6cd41c5152ae279a14
(cherry picked from commit 716e0e8f3e)
mr26.0
Debora Crescenzo 2 months ago committed by Crescenzo Debora
parent bdf57585bd
commit dec4dc0693

@ -402,7 +402,7 @@ export default {
}
const res = await apiGet(
{
path: 'api/otpsecret',
resource: 'otpsecret',
config: {
responseType: 'blob',
headers
@ -433,7 +433,7 @@ export default {
}
const res = await apiGet(
{
path: 'api/otpsecret',
resource: 'otpsecret',
config: { headers }
})
commit('storeOTPSecret', { type: 'text', data: res.data })

Loading…
Cancel
Save