Common interface for server routes, providing shared properties.
API
interface ServerRouteCommon {
path: string;
headers?: Record<string, string> | undefined;
status?: number | undefined;
}
path
stringThe path associated with this route.
headers
Record<string, string> | undefinedOptional additional headers to include in the response for this route.
status
number | undefinedOptional status code to return for this route.