feat: add GET /profiles route

This commit is contained in:
2026-08-12 21:29:47 +08:00
parent e79590a6d8
commit 452581c3b5
2 changed files with 16 additions and 1 deletions
+2 -1
View File
@@ -3,11 +3,12 @@ import { healthRoute } from './routes/health.js';
import { pageRoutes } from './routes/pages.js';
import { contentRoutes } from './routes/content.js';
import { actionRoutes } from './routes/actions.js';
import { profilesRoute } from './routes/profiles.js';
import type { BrowserManager } from './browser-manager.js';
import { createWsRelay } from './ws-relay.js';
export function startServer(port: number, browserManager?: BrowserManager): Promise<http.Server> {
const routes = [healthRoute];
const routes = [healthRoute, profilesRoute];
if (browserManager) {
routes.push(pageRoutes(browserManager));
routes.push(contentRoutes(browserManager));