overwork most of how api works

dont transmit handler within payload
don't use oauth to gen token -- jwt instead
This commit is contained in:
2021-09-16 22:38:28 +02:00
parent 0fcb92c61a
commit e985eb941c
19 changed files with 561 additions and 453 deletions

View File

@ -68,7 +68,7 @@ function generalAPICall<T>(
mytoken: string
): void {
(async function (): Promise<void> {
const response = await fetch(APIPREFIX + apinode, {
const response = await fetch(APIPREFIX + apinode + '/' + fd.action, {
method: 'POST',
body: JSON.stringify(fd),
headers: new Headers({