9 lines
293 B
TypeScript
9 lines
293 B
TypeScript
import { Request, Response } from 'express';
|
|
|
|
export interface CrudHandler {
|
|
create(req: Request, res: Response): Promise<void>;
|
|
read(req: Request, res: Response): Promise<void>;
|
|
update(req: Request, res: Response): Promise<void>;
|
|
delete(req: Request, res: Response): Promise<void>;
|
|
}
|