feat: 新增app管理和文件管理

This commit is contained in:
2024-10-06 20:10:20 +08:00
parent 1f81d3400c
commit 477ad00d86
18 changed files with 713 additions and 0 deletions

View File

@@ -3,9 +3,11 @@ import { app } from './app.ts';
import './route.ts';
const config = useConfig();
import { app as aiApp } from '@kevisual/ai-lang/src/index.ts';
import { uploadMiddleware } from './lib/upload.ts';
//
export { aiApp };
export { app };
app.listen(config.port, () => {
console.log(`server is running at http://localhost:${config.port}`);
});
app.server.on(uploadMiddleware);