Reduce boilerplate in a few more service testers [cdnjs continuousphp node shippable wercker gem] (#1957)

Follow up to #1934.
This commit is contained in:
Paul Melnikow
2018-08-27 16:36:35 -04:00
committed by GitHub
parent bedba47d77
commit 64d325b002
7 changed files with 29 additions and 29 deletions

View File

@@ -4,6 +4,10 @@ const LegacyService = require('../legacy-service')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
module.exports = class ContinuousPhp extends LegacyService {
static get url() {
return { base: 'continuousphp' }
}
static registerLegacyRouteHandler({ camp, cache }) {
camp.route(
/^\/continuousphp\/([^/]+)\/([^/]+\/[^/]+)(?:\/(.+))?\.(svg|png|gif|jpg|json)$/,