New: Use ASP.NET Core instead of Nancy

This commit is contained in:
ta264 2021-08-04 21:42:40 +01:00 committed by Qstick
parent fe956f340c
commit c247d07e84
161 changed files with 2893 additions and 3665 deletions

View file

@ -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) => {

View file

@ -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);

View file

@ -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);

View file

@ -146,6 +146,7 @@ export const actionHandlers = handleThunks({
url: '/blacklist/bulk',
method: 'DELETE',
dataType: 'json',
contentType: 'application/json',
data: JSON.stringify({ ids })
}).request;

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) => {

View file

@ -264,6 +264,7 @@ export const actionHandlers = handleThunks({
const promise = createAjaxRequest({
url: '/history/failed',
method: 'POST',
dataType: 'json',
data: {
id
}

View file

@ -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);

View file

@ -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;

View file

@ -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;

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) => {