Skip to content

Commit 2d8fb65

Browse files
committed
fup cleanup
1 parent 2edab10 commit 2d8fb65

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

api/src/api.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ import { RequestContextContainer } from "@effect-app/infra/services/RequestConte
88
import { ContextMapContainer } from "@effect-app/infra/services/Store/ContextMapContainer"
99
import * as HttpClientNode from "@effect/platform-node/NodeHttpClient"
1010
import * as HttpNode from "@effect/platform-node/NodeHttpServer"
11-
import { router } from "api/routes.js"
1211
import { Effect, Layer, Option, Stream } from "effect-app"
1312
import { HttpMiddleware, HttpRouter, HttpServer } from "effect-app/http"
1413
import { GenericTag } from "effect/Context"
1514
import { createServer } from "node:http"
1615
import { ClientEvents } from "resources.js"
1716
import { MergedConfig } from "./config.js"
1817
import { RepoTest } from "./lib/layers.js"
18+
import { matchAll } from "./lib/routing.js"
1919
import { UserRepo } from "./services.js"
2020
import { Events } from "./services/Events.js"
21+
import * as Controllers from "./Usecases.js"
2122

2223
export const ApiPortTag = GenericTag<{ port: number }>("@services/ApiPortTag")
2324

@@ -32,6 +33,8 @@ class OperationsRepoImpl extends OperationsRepo {
3233
static readonly Live = this.toLayer.pipe(Layer.provide(RepoTest))
3334
}
3435

36+
export const router = matchAll(Controllers)
37+
3538
export const api = Effect
3639
.gen(function*() {
3740
let cfg = yield* MergedConfig

api/src/routes.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)