0.0.2 • Published 2 years ago
@ibrahimanshor/express-http v0.0.2
Express HTTP
Install
npm install @ibrahimanshor/express-http
Usage
Exceptions
const { Exception, Response } = require('@ibrahimanshor/express-http');
new Exception.BadRequestException('bad request', {
detail: 'requiest invalid',
});
new Response.CreatedResponse('user created', { id: 1 }).use(res);