Commit 5beacedd authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

less test router number

parent c4d503f6
...@@ -6,9 +6,6 @@ const BASE_URL = `http://localhost:${process.env.PORT || 8000}`; ...@@ -6,9 +6,6 @@ const BASE_URL = `http://localhost:${process.env.PORT || 8000}`;
function formatter(data) { function formatter(data) {
return data return data
.reduce((pre, item) => { .reduce((pre, item) => {
if (item.routes) {
return pre.concat(formatter(item.routes));
}
pre.push(item.path); pre.push(item.path);
return pre; return pre;
}, []) }, [])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment