[sourceforge] support folder hierarchy (#4555)

closes #4499
This commit is contained in:
chris48s
2020-01-19 15:37:41 +00:00
committed by GitHub
parent cc5d75230a
commit 814399d936
2 changed files with 8 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ module.exports = class Sourceforge extends BaseJsonService {
static get route() {
return {
base: 'sourceforge',
pattern: ':interval(dt|dm|dw|dd)/:project/:folder?',
pattern: ':interval(dt|dm|dw|dd)/:project/:folder*',
}
}

View File

@@ -10,6 +10,13 @@ t.create('total downloads')
message: isMetric,
})
t.create('total downloads (with subdirs)')
.get('/dt/smartmontools/smartmontools/7.1.json')
.expectBadge({
label: 'downloads',
message: isMetric,
})
t.create('monthly downloads')
.get('/dm/sevenzip.json')
.expectBadge({