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