jmacura před 5 roky
rodič
revize
4be183e0a8
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1 2
      index.js

+ 1 - 2
index.js

@@ -6,7 +6,6 @@ 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';
@@ -19,7 +18,7 @@ app.use(express.json());
 app.use(cors())
 
 /* Dummy web service call without the method specified */
-app.get(_serviceBase, (req, res) => {
+app.get('/', (req, res) => {
     res.send('Rural attractivness web service');
 });