Variable routerConst

router: Record<string, RouteBuilder> = ...

Router object that provides methods for creating routes with various HTTP methods.

Example usage:

import { router, start, text } from "@pulsar-http/core";

const routes = [
router.get('/api/users', async () => text('User List')),
router.post('/api/users', async () => text('User Created')),
router.put('/api/users/:id', async ({ pathParams }) => text(`User ${pathParams.id} Updated`)),
router.delete('/api/users/:id', async ({ pathParams }) => text(`User ${pathParams.id} Deleted`)),
];

start({
routes,
});

This example shows how to create routes using the provided methods, such as get, post, put, and delete.