fix router bug

pull/275/head
Bosn 7 years ago
parent b90e5a1a63
commit 8ad1482096

@ -155,7 +155,11 @@ router.all('/app/mock/:repositoryId(\\d+)/:url(.+)', async (ctx) => {
if (matchedItfList) {
for (const item of matchedItfList) {
itf = item
if (item.url === urlWithoutPrefixSlash) {
let url = item.url
if (url.charAt(0) === '/') {
url = url.substring(1)
}
if (url === urlWithoutPrefixSlash) {
break
}
}

Loading…
Cancel
Save