feat: continue work

Signed-off-by: Avior <github@avior.me>
This commit is contained in:
2023-06-28 01:15:56 +02:00
parent d76f412b82
commit 9530be5c43
16 changed files with 148 additions and 86 deletions

11
src/env.d.ts vendored
View File

@ -1,6 +1,5 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
/// <reference types="./libs/ResponseBuilder" />
interface ImportMetaEnv {
PRUSASLICER_PATH?: string
@ -21,6 +20,14 @@ declare namespace App {
* authentification key is the api key or the session token
*/
authKey?: string
responseBuilder?: ResponseBuilder
responseBuilder: {
body(body: string | Buffer | object | null | undefined): this
headers(headers: HeadersInit ): this
addHeader(key: string, value: string): this
addHeaders(headers: Record<string, string>): this
removeHeader(key: string): this
status(status: number): this
build(): Response
} // ./libs/ResponseBuilder object
}
}