mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Use ASP.NET Core instead of Nancy
This commit is contained in:
parent
fe956f340c
commit
c247d07e84
161 changed files with 2893 additions and 3665 deletions
|
@ -78,7 +78,9 @@ export default {
|
|||
const promise = createAjaxRequest({
|
||||
method: 'PUT',
|
||||
url: '/qualityDefinition/update',
|
||||
data: JSON.stringify(upatedDefinitions)
|
||||
data: JSON.stringify(upatedDefinitions),
|
||||
contentType: 'application/json',
|
||||
dataType: 'json'
|
||||
}).request;
|
||||
|
||||
promise.done((data) => {
|
||||
|
|
|
@ -88,6 +88,7 @@ export const actionHandlers = handleThunks({
|
|||
const promise = createAjaxRequest({
|
||||
url: '/history/failed',
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: historyId
|
||||
}
|
||||
|
@ -109,4 +110,3 @@ export const reducers = createHandleActions({
|
|||
}
|
||||
|
||||
}, defaultState, section);
|
||||
|
||||
|
|
|
@ -80,6 +80,7 @@ export const actionHandlers = handleThunks({
|
|||
const promise = createAjaxRequest({
|
||||
url: '/history/failed',
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: historyId
|
||||
}
|
||||
|
@ -101,4 +102,3 @@ export const reducers = createHandleActions({
|
|||
}
|
||||
|
||||
}, defaultState, section);
|
||||
|
||||
|
|
|
@ -146,6 +146,7 @@ export const actionHandlers = handleThunks({
|
|||
url: '/blacklist/bulk',
|
||||
method: 'DELETE',
|
||||
dataType: 'json',
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify({ ids })
|
||||
}).request;
|
||||
|
||||
|
|
|
@ -139,7 +139,8 @@ export function executeCommandHelper( payload, dispatch) {
|
|||
const promise = createAjaxRequest({
|
||||
url: '/command',
|
||||
method: 'POST',
|
||||
data: JSON.stringify(payload)
|
||||
data: JSON.stringify(payload),
|
||||
dataType: 'json'
|
||||
}).request;
|
||||
|
||||
return promise.then((data) => {
|
||||
|
|
|
@ -264,6 +264,7 @@ export const actionHandlers = handleThunks({
|
|||
const promise = createAjaxRequest({
|
||||
url: '/history/failed',
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id
|
||||
}
|
||||
|
|
|
@ -396,6 +396,7 @@ export const actionHandlers = handleThunks({
|
|||
url: `/queue/bulk?removeFromClient=${remove}&blacklist=${blacklist}&skipredownload=${skipredownload}`,
|
||||
method: 'DELETE',
|
||||
dataType: 'json',
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify({ ids })
|
||||
}).request;
|
||||
|
||||
|
@ -453,4 +454,3 @@ export const reducers = createHandleActions({
|
|||
})
|
||||
|
||||
}, defaultState, section);
|
||||
|
||||
|
|
|
@ -271,6 +271,7 @@ export const actionHandlers = handleThunks({
|
|||
const promise = createAjaxRequest({
|
||||
url: '/release',
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify(payload)
|
||||
}).request;
|
||||
|
|
|
@ -115,6 +115,7 @@ export const actionHandlers = handleThunks({
|
|||
const promise = createAjaxRequest({
|
||||
url: '/artist',
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify(newArtist)
|
||||
}).request;
|
||||
|
|
|
@ -53,7 +53,8 @@ export const actionHandlers = handleThunks({
|
|||
const promise = createAjaxRequest({
|
||||
url: '/tag',
|
||||
method: 'POST',
|
||||
data: JSON.stringify(payload.tag)
|
||||
data: JSON.stringify(payload.tag),
|
||||
dataType: 'json'
|
||||
}).request;
|
||||
|
||||
promise.done((data) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue