feat: add GET /profiles route
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user