This commit is contained in:
2025-12-26 18:13:15 +08:00
parent 66e6370013
commit 413c147109
32 changed files with 2449 additions and 205 deletions

18
src/index.ts Normal file
View File

@@ -0,0 +1,18 @@
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');
})
}