- Introduced blog routing using Next.js App Router - Implemented dynamic [slug] pages for blog posts - Added MDX-based content loading via lib/posts - Integrated shared TopBar layout with navigation - Established clear content, lib and component separation
11 lines
456 B
TypeScript
11 lines
456 B
TypeScript
import type { ServerResponse } from 'http';
|
|
export declare const middlewareResponse: {
|
|
noContent(res: ServerResponse): void;
|
|
badRequest(res: ServerResponse, reason?: string): void;
|
|
notFound(res: ServerResponse): void;
|
|
methodNotAllowed(res: ServerResponse): void;
|
|
internalServerError(res: ServerResponse, error?: unknown): void;
|
|
json(res: ServerResponse, data: any): void;
|
|
jsonString(res: ServerResponse, data: string): void;
|
|
};
|