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