import type { Group } from '@chubbyts/chubbyts-framework/dist/router/group';import { createGroup } from '@chubbyts/chubbyts-framework/dist/router/group';import type { Route } from '@chubbyts/chubbyts-framework/dist/router/route';const listRoute: Route = ...;const createRoute: Route = ...;const readRoute: Route = ...;const updateRoute: Route = ...;const deleteRoute: Route = ...;const group: Group = createGroup({ path: '/api/users', children: [listRoute, createRoute, readRoute, updateRoute, deleteRoute],}); Copy
import type { Group } from '@chubbyts/chubbyts-framework/dist/router/group';import { createGroup } from '@chubbyts/chubbyts-framework/dist/router/group';import type { Route } from '@chubbyts/chubbyts-framework/dist/router/route';const listRoute: Route = ...;const createRoute: Route = ...;const readRoute: Route = ...;const updateRoute: Route = ...;const deleteRoute: Route = ...;const group: Group = createGroup({ path: '/api/users', children: [listRoute, createRoute, readRoute, updateRoute, deleteRoute],});