Files
browser-helper/src/index.ts
2025-12-26 18:13:15 +08:00

18 lines
450 B
TypeScript

import { app } from './app.ts'
export { app, db } from './app.ts';
export { Core } from './playwright/core.ts';
import './routes/index.ts';
// 如果是直接运行,则启动应用
app.route({
id: 'auth'
}).define(async (ctx) => {
// token authentication
}).addTo(app);
if (import.meta.main) {
console.log('Starting application...');
app.listen(52000, () => {
console.log('Application is running on http://localhost:52000');
})
}