Chcę wysyłać żądania AJAX za pomocą Express. Używam kodu wyglądającego następująco:Jak mogę tworzyć żądania AJAX przy użyciu frameworka Express?
var express = require('express');
var app = express();
app.get('/', function(req, res) {
// here I would like to make an external
// request to another server
});
app.listen(3000);
Jak to zrobić?
dokumentacja: https: // nodejs .org/api/http.html # http_http_request_options_callback – mauronet