feat: add load types

This commit is contained in:
2024-11-10 21:12:45 +08:00
parent 2bbf3983c1
commit 696be2a28c
14 changed files with 356 additions and 217 deletions

View File

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