diff --git a/src/Router.ts b/src/Router.ts index 3f7813cc7..99e407bd9 100644 --- a/src/Router.ts +++ b/src/Router.ts @@ -210,7 +210,7 @@ const WriteCommentFlowRouter = pipe( export const Router = pipe( HttpRouter.empty, - HttpRouter.get(Routes.AboutUs.path, pipe(AboutUsPage, Effect.andThen(toHttpServerResponse))), + HttpRouter.get(Routes.AboutUs, pipe(AboutUsPage, Effect.andThen(toHttpServerResponse))), HttpRouter.concat(WriteCommentFlowRouter), HttpRouter.use( HttpMiddleware.make( diff --git a/src/routes.ts b/src/routes.ts index 69ffdefce..16d609ad1 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -25,11 +25,7 @@ export interface Route<A extends { readonly [K in keyof A]: unknown }> { schema: Schema.Schema<A, { readonly [K in keyof A]: string }> } -export const AboutUs: Route<object> = { - path: '/about', - href: () => '/about', - schema: Schema.Struct({}), -} +export const AboutUs = '/about' export const WriteComment: Route<{ id: number }> = { path: '/reviews/:id/write-a-comment',