mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-25 09:56:15 +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,
|
|
});
|
|
});
|
|
};
|