2025-02-08 16:32:23 -05:00

16 lines
321 B
TypeScript

import { type Request, type Response, type NextFunction } from "express";
interface Description {
route: `/` | `/${string}`
middleware?: Function[]
desc?: string
}
interface Run {
(req: Request, res: Response, next: NextFunction): void
}
export interface Route {
description: Description
run: Run | Run[]
}