Implement CRUD operations on user accounts

This commit is contained in:
Conor McNamara
2023-03-12 13:39:35 +00:00
parent 26822d0be9
commit 71865159e3
7 changed files with 194 additions and 55 deletions

View File

@ -42,6 +42,7 @@ exports.postStationData = functions.https.onRequest((request, response) => {
// helper function to write to the database
function batchWriteDB(request, response, db, jsonData, dartCodes, stationTypeCode) {
if (!jsonData) return
response.set('Access-Control-Allow-Origin', '*');
response.set('Access-Control-Allow-Credentials', 'true');
@ -136,6 +137,7 @@ exports.postLiveTrainData = functions.https.onRequest((request, response) => {
// helper function to write to the database
function batchWriteDB(request, response, db, jsonData, trainTypeCode) {
if (!jsonData) return
response.set('Access-Control-Allow-Origin', '*');
response.set('Access-Control-Allow-Credentials', 'true');