update
This commit is contained in:
18
src/index.ts
Normal file
18
src/index.ts
Normal 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');
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user