backend/src/services/list.services.js
Fred Boniface f2bd261414 Initial Push (v0.0.2)
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-02-09 20:34:53 +00:00

20 lines
504 B
JavaScript

const log = require('../utils/log.utils'); // Log Helper
const db = require('../services/dbAccess.services')
const os = require('os')
async function getStations(){
var out = await db.query("stations")
log.out(`listServices.getStations: fetched stations list`)
return out;
}
async function getCorpus(){
var out = await db.query("corpus")
log.out(`listServices.getCorpus: fetched CORPUS list`)
return out;
}
module.exports = {
getStations,
getCorpus
}