Procházet zdrojové kódy

Change service base address

jmacura před 5 roky
rodič
revize
0617ba41ae
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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');
 });