Added reworked rest api

This commit is contained in:
SamTV12345 2024-09-15 22:20:30 +02:00
parent 4d5230cf9c
commit 495ec4ba14
2 changed files with 1049 additions and 86 deletions

File diff suppressed because it is too large Load diff

View file

@ -153,7 +153,7 @@ export const expressCreateServer = async (hookName: string, args: ArgsExpressTyp
}); });
args.app.post('/interaction/:uid', async (req: Http2ServerRequest, res: Http2ServerResponse, next:Function) => { args.app.post('/interaction/:uid', async (req, res, next) => {
const formid = new IncomingForm(); const formid = new IncomingForm();
try { try {
// @ts-ignore // @ts-ignore
@ -226,7 +226,7 @@ export const expressCreateServer = async (hookName: string, args: ArgsExpressTyp
}) })
args.app.get('/interaction/:uid', async (req: Request, res: Response, next: Function) => { args.app.get('/interaction/:uid', async (req, res, next) => {
try { try {
const { const {
uid, prompt, params, session, uid, prompt, params, session,