Update helpers.ts to match comment structure

This commit is contained in:
Esad Mustafoski
2025-03-18 08:31:14 +01:00
committed by GitHub
parent 497d5aa28f
commit 65ced2f3d3

View File

@@ -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" } })