Merge pull request #1678 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-opRrH

Improved comments on /App/FeatureSet/ApiReference/Service/Status.ts
This commit is contained in:
Simon Larsen 2024-09-08 19:02:33 +01:00 committed by GitHub
commit 6a99c01e8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<ModelDocumentation> = ResourceUtil.getResources(); // Get resources from ResourceUtil
// Retrieve resources from ResourceUtil
const resources: Array<ModelDocumentation> = ResourceUtil.getResources();
export default class ServiceHandler {
public static async executeResponse(
@ -11,8 +12,9 @@ export default class ServiceHandler {
): Promise<void> {
// 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",