Init backend, frontend and DB schema
This commit is contained in:
13
packages/backend/src/services/request.ts
Normal file
13
packages/backend/src/services/request.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { RequestId } from "common";
|
||||
import { Context, Option as O } from "effect";
|
||||
|
||||
export interface RequestInterface {
|
||||
readonly requestId: RequestId;
|
||||
readonly method: string;
|
||||
readonly path: readonly string[];
|
||||
readonly query: { readonly [_: string]: string };
|
||||
readonly headers: { readonly [_: string]: string };
|
||||
readonly ip: O.Option<string>;
|
||||
}
|
||||
|
||||
export class Request extends Context.Tag("Request")<Request, RequestInterface>() { }
|
||||
Reference in New Issue
Block a user