|
|
@@ -126,6 +126,9 @@ app.post('/scores', (req, res, next) => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+/*
|
|
|
+ Only testing purposes
|
|
|
+*/
|
|
|
app.get('/runR', (req, res, next) => {
|
|
|
//console.log(console);
|
|
|
console.log('calling R...')
|
|
|
@@ -145,6 +148,9 @@ app.get('/runR', (req, res, next) => {
|
|
|
);
|
|
|
});
|
|
|
|
|
|
+/*
|
|
|
+ Calls R script, loads the resulting CSV file and returns it
|
|
|
+*/
|
|
|
app.get('/clusters', (req, res, next) => {
|
|
|
//console.log(console);
|
|
|
console.log('calling R...')
|