20 lines
471 B
JavaScript
20 lines
471 B
JavaScript
// Get CORPUS data from Network Rail and format the data for OwlBoard
|
|
|
|
// FUNCTIONS
|
|
// get() : Exported: Returns: Ready Status and Owlboard Version
|
|
// post() : Exported: Will check the API authentication and return status
|
|
|
|
const version = require('../configs/version.configs');
|
|
|
|
async function get(){
|
|
return {"OwlBoard_Status":"ready","OwlBoard_Version":version};
|
|
}
|
|
|
|
async function post(){
|
|
return {"type":"post"};
|
|
}
|
|
|
|
module.exports = {
|
|
get,
|
|
post
|
|
} |