Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/Status.ts #1622

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion App/FeatureSet/ApiReference/Service/Status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { ExpressRequest, ExpressResponse } from "CommonServer/Utils/Express";

const resources: Array<ModelDocumentation> = ResourceUtil.getResources(); // Get resources from ResourceUtil
// Get resources from ResourceUtil
const resources: Array<ModelDocumentation> = ResourceUtil.getResources();

export default class ServiceHandler {
public static async executeResponse(
Expand All @@ -11,6 +12,7 @@ export default class ServiceHandler {
): Promise<void> {
// Set HTTP status to 200
res.status(200);

return res.render(`${ViewsPath}/pages/index`, {
// Render index page with necessary data
page: "status",
Expand Down
Loading