修复restful模式下,没有考虑请求的HTTP Method,导致提示“匹配到多个接口…”

pull/327/head
ganl 7 years ago
parent 42934d51aa
commit 8b9f72a78e

@ -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