Update helpers.ts to match comment structure
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
* @file api/helpers.ts
|
* @file api/helpers.ts
|
||||||
* @description Helper functions for the API
|
* @description Helper functions for the API
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// +++ IMPORTS ------------------------------------------------------ //
|
||||||
import { Context } from "https://deno.land/x/oak/mod.ts";
|
import { Context } from "https://deno.land/x/oak/mod.ts";
|
||||||
import { encodeHex } from "jsr:@std/encoding/hex";
|
import { encodeHex } from "jsr:@std/encoding/hex";
|
||||||
// import { hash } from "node:crypto";
|
// import { hash } from "node:crypto";
|
||||||
@@ -13,7 +15,8 @@ export type ApiResponse = {
|
|||||||
body: unknown;
|
body: unknown;
|
||||||
};
|
};
|
||||||
|
|
||||||
// --- Helper Functions --- //
|
|
||||||
|
// +++ FUNCTIONS ---------------------------------------------------- //
|
||||||
/**
|
/**
|
||||||
* @description Sends a response to the client
|
* @description Sends a response to the client
|
||||||
* @usage sendResponse(ctx, { status: 200, body: { message: "Success" } })
|
* @usage sendResponse(ctx, { status: 200, body: { message: "Success" } })
|
||||||
|
|||||||
Reference in New Issue
Block a user