Skip to content

Commit

Permalink
feat: export server send functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosantangelo committed Aug 9, 2019
1 parent 5924905 commit 4a01d9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/index.ts
Expand Up @@ -68,10 +68,10 @@ export function extractFromReq<T = string>(req: Request, param: string): T {
return value
}

function sendOk(data) {
export function sendOk(data) {
return { ok: true, data }
}

function sendError(data, error) {
export function sendError(data, error) {
return { ok: false, data, error }
}

0 comments on commit 4a01d9b

Please sign in to comment.