atlasgql
Version:
A self-composing GraphQL server library using TypeScript, Express and Apollo Server
10 lines (9 loc) • 373 B
TypeScript
import { NextFunction, Request, Response } from 'express';
declare const router: import("express-serve-static-core").Router;
export interface CustomRoute {
path: string;
handler: (req: Request, res: Response, next: NextFunction) => void;
}
declare const registerCustomRoutes: (routes: CustomRoute[]) => void;
export { registerCustomRoutes };
export default router;