Parcourir la source

Change service base address

jmacura il y a 5 ans
Parent
commit
0617ba41ae
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      index.js

+ 2 - 1
index.js

@@ -6,6 +6,7 @@ const R = require('r-script');
 
 const app = express();
 
+const _serviceBase = 'rural-api/';
 const _datasetsFilePath = 'data/datasets.csv';
 const _dataFilePath = 'data/data.csv';
 const _clustersFilePath = 'data/clustering/out_file.csv';
@@ -18,7 +19,7 @@ app.use(express.json());
 app.use(cors())
 
 /* Dummy web service call without the method specified */
-app.get('/', (req, res) => {
+app.get(serviceBase, (req, res) => {
     res.send('Rural attractivness web service');
 });