0
Runkit(https://runkit.com)は、エンドポイントを公開できるサービスを提供しています。Runkitエンドポイントの外部リクエスト
私は外部サーバーを呼び出してデータを返すenpointを公開する予定です。私はこれを達成できないようです。ここで私が試したものです:私は取得しています
var got = require("got");
var githubStatusJson = (await got("https://status.github.com/api/status.json", { json : true })).body;
exports.endpoint = function(request, response) {
response.end("Hello world!");
}
エラーメッセージは次のとおりです。
{
error: "invalid_server",
message: "The requested document does not export an 'endpoint' function. Read more about endpoint: https://runkit.com/docs/endpoint"
}