Add initial serverless setup.

This commit is contained in:
Patrick Fic
2026-01-08 12:09:38 -08:00
parent b29600158a
commit 2a53f7b7d0
11 changed files with 139 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
// You can require shared code from the lib folder
// const { dbConnect } = require('../lib/db');
exports.handler = async (event) => {
// Path parameters are automatically parsed for you
const userId = event.pathParameters.id;
return {
statusCode: 200,
body: JSON.stringify({
message: `EMS Upload Path`,
})
};
};

View File

@@ -0,0 +1,15 @@
// You can require shared code from the lib folder
// const { dbConnect } = require('../lib/db');
exports.handler = async (event) => {
// Path parameters are automatically parsed for you
return {
statusCode: 200,
body: JSON.stringify({
message: `Scrub Path`,
data: { id: 1, name: "Alice" }
})
};
};

0
serverless/src/lib/db.js Normal file
View File