mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
fix(api3): restore /test endpoint for both development and test environments
PR #8465 replaced 'development' with 'test' instead of adding it, breaking the /test endpoint when NODE_ENV=development. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ function configure (env, ctx) {
|
|||||||
|
|
||||||
app.get('/version', require('./specific/version')(app, ctx, env));
|
app.get('/version', require('./specific/version')(app, ctx, env));
|
||||||
|
|
||||||
if (app.get('env') === 'test' || app.get('ci')) { // for development and testing purposes only
|
if (app.get('env') === 'development' || app.get('env') === 'test' || app.get('ci')) { // for development and testing purposes only
|
||||||
app.get('/test', async function test (req, res) {
|
app.get('/test', async function test (req, res) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user