Since we've upgraded production to Node 12 (#5436) we can finally adopt static fields! This starts the process by updating core and one of the service families.
15 lines
368 B
JavaScript
15 lines
368 B
JavaScript
'use strict'
|
|
|
|
const BaseJsonService = require('../base-json')
|
|
|
|
class GoodServiceOne extends BaseJsonService {
|
|
static category = 'build'
|
|
static route = { base: 'good', pattern: 'one' }
|
|
}
|
|
class GoodServiceTwo extends BaseJsonService {
|
|
static category = 'build'
|
|
static route = { base: 'good', pattern: 'two' }
|
|
}
|
|
|
|
module.exports = [GoodServiceOne, GoodServiceTwo]
|