See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| import * as express from "express"; | |
| import httpStatus from "http-status"; | |
| import { APIError } from "./api-error"; | |
| export abstract class BaseController { | |
| // Success Methods | |
| protected ok<DTO>(res: express.Response, dto?: DTO) { | |
| if (dto) { | |
| return res.status(httpStatus.OK).json(dto); | |
| } |