Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

374 B
Raw Blame
import { notFound } from "next/navigation";

import { auth } from "@homarr/auth/next";

import { ScalarApiReference } from "~/app/[locale]/manage/tools/api/components/scalar-api-reference";

export default async function ApiReferencePage() {
  const session = await auth();
  if (!session?.user.permissions.includes("admin")) notFound();

  return <ScalarApiReference />;
}