Effect CommunityEC
Effect Community15mo ago
19 replies
technopriest

Migrating from HttpRouter to HttpApi: Merging Multiple Groups

Hello! Im working on migrating from HttpRouter to HttpApi and was wondering how to merge multiple groups similar to this:

import { HttpRouter } from '@effect/platform'
import { v2024_10 } from '@/routes/2024-10'
import { v2023_10 } from '@/routes/2024-10'

export const HttpLive = HttpRouter.empty.pipe(
  HttpRouter.mount('/2024-10', v2024_10),
  HttpRouter.mount('/2023-10', v2023_10)
)
Was this page helpful?