Parent Directory
|
Revision Log
feat(api): advanced response handling
1 | rakin | 325 | import KeyValuePair from "../types/KeyValuePair"; |
2 | import Response from "./Response"; | ||
3 | |||
4 | rakin | 323 | export default class Controller { |
5 | rakin | 325 | protected response(body: string, status: number = 200, headers: KeyValuePair<string> = {}) { |
6 | return new Response(status, body, headers); | ||
7 | } | ||
8 | rakin | 323 | } |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |