Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit ed49a78

Browse files
committed
Fix flatten init prefix
1 parent b387dbe commit ed49a78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/flatten.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function flattenize(routes, prefix, parent) {
22
const list = {}
33

44
Object.keys(routes.local).forEach(method => {
5-
const localName = prefix === '/' ? '/' : `${prefix}/`
5+
const localName = prefix === '' ? '/' : `${prefix}/`
66

77
if (!list[localName]) {
88
list[localName] = {}

0 commit comments

Comments
 (0)