Skip to content

Commit

Permalink
fup cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
patroza committed Sep 28, 2024
1 parent 2edab10 commit 89e03ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion api/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ import { RequestContextContainer } from "@effect-app/infra/services/RequestConte
import { ContextMapContainer } from "@effect-app/infra/services/Store/ContextMapContainer"
import * as HttpClientNode from "@effect/platform-node/NodeHttpClient"
import * as HttpNode from "@effect/platform-node/NodeHttpServer"
import { router } from "api/routes.js"
import { Effect, Layer, Option, Stream } from "effect-app"
import { HttpMiddleware, HttpRouter, HttpServer } from "effect-app/http"
import { GenericTag } from "effect/Context"
import { createServer } from "node:http"
import { ClientEvents } from "resources.js"
import { MergedConfig } from "./config.js"
import { RepoTest } from "./lib/layers.js"
import { matchAll } from "./lib/routing.js"
import { UserRepo } from "./services.js"
import { Events } from "./services/Events.js"
import * as Usecases from "./Usecases.js"

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

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

const router = matchAll(Usecases)

export const api = Effect
.gen(function*() {
let cfg = yield* MergedConfig
Expand Down
4 changes: 0 additions & 4 deletions api/src/routes.ts

This file was deleted.

0 comments on commit 89e03ef

Please sign in to comment.