@@ -42,7 +42,6 @@ import {
4242 UpProjectRequestSchema
4343} from "./api/schema.js"
4444import type { UpProjectRequestInput } from "./api/schema.js"
45- import { uiHtml , uiScript , uiStyles } from "./ui.js"
4645import { defaultProjectsRoot } from "@effect-template/lib/usecases/menu-helpers"
4746import { resolveWorkspaceRoot } from "@effect-template/lib/shell/workspace-root"
4847import {
@@ -767,16 +766,7 @@ const projectProxyResponse = Effect.gen(function*(_) {
767766} )
768767
769768export 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