18 lines
450 B
TypeScript
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');
|
|
})
|
|
}
|