Enterprise-grade Node.js architecture for
Build scalable serverless and traditional applications with confidence.
学习如何使用 Class 语法开发 Midway.js 应用
@Controller('/') export class Home { @Inject() ctx: Context; @Get('/api') async getData() { return "Midway Connected"; } }
export default async () => { const ctx = useContext(); const db = usePlugin(TypeORM); return { status: "Active", data: await db.find() }; }
学习如何使用 Function 语法开发 Midway.js 应用
来自各大互联网公司的优秀团队都在使用 Midway.js,共同构建更好的应用