From ea5ee48dde21f4b731356d68263d535e114fc0b7 Mon Sep 17 00:00:00 2001 From: OneUptime Copilot Date: Sun, 8 Sep 2024 17:34:02 +0000 Subject: [PATCH] Improved comments on /App/FeatureSet/ApiReference/Service/Status.ts --- App/FeatureSet/ApiReference/Service/Status.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/App/FeatureSet/ApiReference/Service/Status.ts b/App/FeatureSet/ApiReference/Service/Status.ts index 92a027ea18..102949302a 100644 --- a/App/FeatureSet/ApiReference/Service/Status.ts +++ b/App/FeatureSet/ApiReference/Service/Status.ts @@ -2,7 +2,8 @@ import { ViewsPath } from "../Utils/Config"; import ResourceUtil, { ModelDocumentation } from "../Utils/Resources"; import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express"; -const resources: Array = ResourceUtil.getResources(); // Get resources from ResourceUtil +// Retrieve resources from ResourceUtil +const resources: Array = ResourceUtil.getResources(); export default class ServiceHandler { public static async executeResponse( @@ -11,8 +12,9 @@ export default class ServiceHandler { ): Promise { // Set HTTP status to 200 res.status(200); + + // Render index page with necessary data return res.render(`${ViewsPath}/pages/index`, { - // Render index page with necessary data page: "status", pageTitle: "Status", pageDescription: "200 - Success",