react-middleware
Version:
Connect middleware for serving React components from a standard folder structure.
32 lines (27 loc) • 545 B
JavaScript
export default {
"/": {
page: "Home",
title: "Home Page",
props: {}
},
"/features": {
page: "Features",
title: "Features Page",
props: {}
},
"/mobile-layout": {
page: "Home",
layout: "Mobile",
title: "Mobile Home Page"
},
"/mobile-layout-func": {
page: (args) => "Home",
layout: (args) => "Mobile",
title: (args) => "Mobile Home Page (Func)"
},
"/root-layout": {
page: (args) => "Home",
layout: (args) => "Root",
title: (args) => "Mobile Home Page (Func)"
}
};