Skip to content

Commit 1aa01a9

Browse files
fix(app): remove legacy frontends (#302)
Co-authored-by: skulidropek <66840575+skulidropek@users.noreply.github.com>
1 parent 92b9a39 commit 1aa01a9

5 files changed

Lines changed: 31 additions & 979 deletions

File tree

packages/api/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ Diagnostic classification + remediation messages live in
3636
`packages/app/src/docker-git/controller-docker-diagnostics.ts` and are
3737
covered by `packages/app/tests/docker-git/controller-docker-diagnostics.test.ts`.
3838

39-
## UI wrapper
40-
41-
After API startup open:
42-
43-
- `http://localhost:3334/`
44-
45-
This page is a built-in UI shell for manual API checks without CLI.
46-
4739
## Run (local)
4840

4941
```bash

packages/api/src/http.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import {
4242
UpProjectRequestSchema
4343
} from "./api/schema.js"
4444
import type { UpProjectRequestInput } from "./api/schema.js"
45-
import { uiHtml, uiScript, uiStyles } from "./ui.js"
4645
import { defaultProjectsRoot } from "@effect-template/lib/usecases/menu-helpers"
4746
import { resolveWorkspaceRoot } from "@effect-template/lib/shell/workspace-root"
4847
import {
@@ -767,16 +766,7 @@ const projectProxyResponse = Effect.gen(function*(_) {
767766
})
768767

769768
export const makeRouter = () => {
770-
const withUi = HttpRouter.empty.pipe(
771-
HttpRouter.get("/",
772-
Effect.gen(function*(_) {
773-
const request = yield* _(HttpServerRequest.HttpServerRequest)
774-
console.log("GET / request:", request.url, "headers:", request.headers)
775-
return yield* _(textResponse(uiHtml, "text/html; charset=utf-8", 200))
776-
}).pipe(Effect.catchAll(errorResponse))
777-
),
778-
HttpRouter.get("/ui/styles.css", textResponse(uiStyles, "text/css; charset=utf-8", 200)),
779-
HttpRouter.get("/ui/app.js", textResponse(uiScript, "application/javascript; charset=utf-8", 200)),
769+
const withCoreRoutes = HttpRouter.empty.pipe(
780770
HttpRouter.get(
781771
"/health",
782772
Effect.gen(function*(_) {
@@ -810,7 +800,7 @@ export const makeRouter = () => {
810800
)
811801
)
812802

813-
const withAuth = withUi.pipe(
803+
const withAuth = withCoreRoutes.pipe(
814804
HttpRouter.get(
815805
"/auth/github/status",
816806
Effect.gen(function*(_) {

0 commit comments

Comments
 (0)