1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

New: Use ASP.NET Core instead of Nancy

This commit is contained in:
ta264
2021-10-21 21:04:19 +01:00
committed by Qstick
parent c14ef7bee7
commit 2d53ec24f8
160 changed files with 2866 additions and 3657 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) => {
@@ -123,6 +123,7 @@ export const actionHandlers = handleThunks({
const promise = createAjaxRequest({
url: '/movie',
method: 'POST',
dataType: 'json',
contentType: 'application/json',
data: JSON.stringify(newMovie)
}).request;
@@ -160,6 +160,7 @@ export const actionHandlers = handleThunks({
url: '/blocklist/bulk',
method: 'DELETE',
dataType: 'json',
contentType: 'application/json',
data: JSON.stringify({ ids })
}).request;
+2 -1
View File
@@ -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) => {
@@ -78,7 +78,8 @@ export const actionHandlers = handleThunks({
const promise = createAjaxRequest({
url: `/history/failed/${historyId}`,
method: 'POST'
method: 'POST',
dataType: 'json'
}).request;
promise.done(() => {
@@ -97,4 +98,3 @@ export const reducers = createHandleActions({
}
}, defaultState, section);
+1 -1
View File
@@ -396,6 +396,7 @@ export const actionHandlers = handleThunks({
url: `/queue/bulk?removeFromClient=${remove}&blocklist=${blocklist}`,
method: 'DELETE',
dataType: 'json',
contentType: 'application/json',
data: JSON.stringify({ ids })
}).request;
@@ -453,4 +454,3 @@ export const reducers = createHandleActions({
})
}, defaultState, section);
@@ -240,6 +240,7 @@ export const actionHandlers = handleThunks({
const promise = createAjaxRequest({
url: '/release',
method: 'POST',
dataType: 'json',
contentType: 'application/json',
data: JSON.stringify(payload)
}).request;
+2 -1
View File
@@ -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) => {