Commit c8d1761567e983eb3e7486af6126fc08f6321209

Authored by Adhidarma Hadiwinoto
1 parent 55f89ea974
Exists in master

APISERVER /cwd

Showing 2 changed files with 6 additions and 0 deletions Side-by-side Diff

lib/apiserver/index.js
  1 +const process = require('process');
1 2 const express = require('express');
2 3  
3 4 const config = require('komodo-sdk/config');
... ... @@ -8,6 +9,11 @@ const routerSmstools = require('./routers/smstools');
8 9 const app = express();
9 10  
10 11 app.use('/smstools', routerSmstools);
  12 +app.get('/cwd', (req, res) => {
  13 + res.json({
  14 + cwd: process.cwd(),
  15 + });
  16 +});
11 17  
12 18 const listenPort = (config.apiserver && config.apiserver.listen_port) || 17243;
13 19 app.listen(listenPort, () => {
lib/smstools-configurator/index.js