我正在讨论一个在节点上明示的问题。 我的服务器边代码有一个终端点,以压缩用户标识。 这项请求击中了一个带有多个用户参数的标志终点。 这里是打上我明确签名的粗略要求。
<代码> http://127.0.0.1:5003/cloud-medic/us- central1/app/signup?email=express&password=asdf&firstName=asdf&lastName=asdf&gender=Male&birthDate=1706763000
The server side code as I mentioned uses express to handle this GET request. I created an app file to house the express request and firebase configuration.
var functions = require("firebase-functions");
const { getDatabase, ref, set, child, push, update } = require("firebase/database");
const { getFirestore, Timestamp, FieldValue, Filter } = require( firebase-admin/firestore );
const { initializeApp } = require( firebase-admin/app );
const express = require( express );
var cors = require( cors );
const firebaseConfig = {
//CONFIG INFO
}
const admin = initializeApp(firebaseConfig);
const db = getFirestore(admin);
const app = express();
app.use(cors());
var router = express.Router();
exports.db = db;
exports.app = app;//functions.https.onRequest(app);
exports.admin = admin;
这里是具有路由功能的指数文档。 它界定了信号功能要求。
var user = require( ./user );
var functions = require("firebase-functions");
const { db, admin, app } = require( ./app );
app.get( /signup , function (request, response) {
console.log("THIS IS A GET FUNCTION");
console.log(request.query);
user.signup(request, response);
});
当我用上述曲线要求打上标志终点时,我收到以下重克。
{ email: express }
All of the other get request url parameters are not passed, just the first one (email). Any help is appreciated.