后端后端

路由与接口

Route & Endpoint

用户访问不同的 URL 时,怎么把它们分别送到对应的代码处理?

routes.ts
GET    /api/users/:id
POST   /api/orders
PATCH  /api/users/:id
DELETE /api/users/:id

route-endpoint · 图文示意

© 2026 Genisource Vibe · 知识点详情