Express cho phép bạn xác định các router có thể được sử dụng trong các ứng dụng lớn hơn. Viết những subapplications là gần như chính xác như viết những người bình thường có kích thước, nhưng nó cho phép
bạn để compartmentalize thêm ứng dụng của bạn thành từng miếng nhỏ. Bạn có thể có một
bảng điều hành chính trong ứng dụng của bạn, và có thể hoạt động khác nhau từ phần còn lại của
ứng dụng của bạn. Bạn có thể đặt các admin đang panel side-by-side với phần còn lại của middleware và các tuyến đường của bạn, nhưng bạn cũng có thể tạo ra một subapplication cho bảng quản trị của bạn.
Hình 1.5 cho thấy cách một ứng dụng nhanh có thể được chia nhỏ với các router.
đang được dịch, vui lòng đợi..