Merge pull request #327 from ganl/fix-restful-method

修复restful模式下,没有考虑请求的HTTP Method,导致提示“匹配到多个接口…”
pull/393/head
Bosn 7 years ago committed by GitHub
commit b619efb90c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -170,6 +170,7 @@ router.all('/app/mock/:repositoryId(\\d+)/:url(.+)', async (ctx) => {
attributes: ['id', 'url', 'method'], attributes: ['id', 'url', 'method'],
where: { where: {
repositoryId: [repositoryId, ...collaborators.map(item => item.id)], repositoryId: [repositoryId, ...collaborators.map(item => item.id)],
method
}, },
}) })

Loading…
Cancel
Save