import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { ExpressRequest, ExpressResponse } from "CommonServer/Utils/Express";

const Resources: Array<ModelDocumentation> = ResourceUtil.getResources();

export default class ServiceHandler {
  public static async executeResponse(
    _req: ExpressRequest,
    res: ExpressResponse,
  ): Promise<void> {
    res.status(404);
    return res.render(`${ViewsPath}/pages/index`, {
      page: "404",
      pageTitle: "Page Not Found",
      pageDescription: "Page you're looking for is not found.",
      resources: Resources,
      pageData: {},
    });
  }
}
