mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-28 11:25:25 +03:00
13 lines
336 B
JavaScript
13 lines
336 B
JavaScript
/* A cloud function that wraps the status checking method, for use on Netlify */
|
|
const statusCheck = require('../status-check');
|
|
|
|
exports.handler = (event, context, callback) => {
|
|
const paramStr = event.rawQuery;
|
|
statusCheck(paramStr, (results) => {
|
|
callback(null, {
|
|
statusCode: 200,
|
|
body: results,
|
|
});
|
|
});
|
|
};
|