Revert "Add missing admin action files and navigation links"

This reverts commit 41be6835bf.
This commit is contained in:
Simo committed 2026-07-11 20:37:56 +02:00
1 parent 4a1e1115b3
commit 4d515bc400
338 files changed
+5949 -28144

No files matched your search

+4 -1
View File
@@ -12,7 +12,10 @@ import { prisma } from "@/lib/prisma";
export const dynamic = "force-dynamic";
export async function POST(req: Request, { params }: { params: Promise<{ slug: string }> }) {
export async function POST(
req: Request,
{ params }: { params: Promise<{ slug: string }> },
) {
const uid = await bearerUserId(req);
if (!uid) return apiError("Unauthorized", 401);
+4 -1
View File
@@ -7,7 +7,10 @@ export const dynamic = "force-dynamic";
* GET /api/articles/:slug — single website_article by slug, including the
* fullStory body. Returns { error } (404) when the slug is unknown.
*/
export async function GET(_req: Request, { params }: { params: Promise<{ slug: string }> }) {
export async function GET(
_req: Request,
{ params }: { params: Promise<{ slug: string }> },
) {
const { slug } = await params;
try {
+4 -1
View File
@@ -41,6 +41,9 @@ export async function GET(req: Request) {
});
} catch {
// DB unavailable — return an empty payload instead of a 500.
return apiJson({ data: [], meta: { page, perPage, total: 0, lastPage: 1 } }, { status: 200 });
return apiJson(
{ data: [], meta: { page, perPage, total: 0, lastPage: 1 } },
{ status: 200 },
);
}
}