UNPKG

@girin/framework

Version:

Core modules for Girin: GraphQL server framework

12 lines (8 loc) 288 B
import express from 'express'; import { IncomingMessage, ServerResponse } from 'http'; export const app = express(); export interface ContextArguments { req: IncomingMessage; res: ServerResponse; } export const contextMap: Map<string, (args: ContextArguments) => any> = new Map();