Fix state detection

This commit is contained in:
Yarmo Mackenbach 2022-11-14 23:26:46 +01:00
parent be88cae995
commit e4af24faba
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -34,7 +34,7 @@ import apiRouter2 from '../api/v2/index.js'
const router = express.Router()
if (process.env.ENABLE_MAIN_MODULE === 'true') {
if ((process.env.ENABLE_MAIN_MODULE ?? 'true') === 'true') {
router.use('/0', apiRouter0)
}
router.use('/1', apiRouter1)