mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
feat: removed unnecessary headers
This commit is contained in:
parent
1af428835a
commit
02890b3445
@ -36,7 +36,7 @@ const AddBot:NextPage<AddBotProps> = ({ logged, user, csrfToken, theme }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function submitBot(value: AddBotSubmit) {
|
async function submitBot(value: AddBotSubmit) {
|
||||||
const res = await Fetch<SubmittedBot>(`/bots/${value.id}`, { method: 'POST', body: JSON.stringify(cleanObject<AddBotSubmit>(value)), headers: { 'content-type': 'application/json' } })
|
const res = await Fetch<SubmittedBot>(`/bots/${value.id}`, { method: 'POST', body: JSON.stringify(cleanObject<AddBotSubmit>(value)) })
|
||||||
setData(res)
|
setData(res)
|
||||||
}
|
}
|
||||||
if(!logged) {
|
if(!logged) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user