From 8829c1eee38ba32730896a269eadf2631e26db05 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 2 Jun 2025 00:11:34 +0200 Subject: Add shortcut for generating http file, part of API documentation --- src/api/RouteDescription.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/api/RouteDescription.js') diff --git a/src/api/RouteDescription.js b/src/api/RouteDescription.js index 6ca426b..290fc82 100644 --- a/src/api/RouteDescription.js +++ b/src/api/RouteDescription.js @@ -56,10 +56,12 @@ export class RouteMethod { * @type {Promise} */ method; - description; - exampleBody; + /* + * @type {Map} + */ + exampleHeaders = []; /** * @param data {RouteMethod} @@ -68,7 +70,5 @@ export class RouteMethod { for (const key of Object.keys(data)) { this[key] = data[key]; } - - if (!Array.isArray(this.middlewares)) this.middlewares = []; } } -- cgit 1.5.1