diff --git a/amplify/backend/function/portfolioHandler/src/app.js b/amplify/backend/function/portfolioHandler/src/app.js index 8bbe0ad..fd96e09 100644 --- a/amplify/backend/function/portfolioHandler/src/app.js +++ b/amplify/backend/function/portfolioHandler/src/app.js @@ -28,15 +28,7 @@ if(process.env.ENV && process.env.ENV !== "NONE") { tableName = tableName + '-' + process.env.ENV; } -const partitionKeyName = "user"; -const partitionKeyType = "S"; -const sortKeyName = ""; -const sortKeyType = ""; -const hasSortKey = sortKeyName !== ""; const path = "/portfolio"; -const UNAUTH = 'UNAUTH'; -const hashKeyPath = '/:' + partitionKeyName; -const sortKeyPath = hasSortKey ? '/:' + sortKeyName : ''; // declare a new express app var app = express() app.use(bodyParser.text({type: "*/*"})); @@ -49,16 +41,6 @@ app.use(function(req, res, next) { next() }); -// convert url string param to expected Type -const convertUrlType = (param, type) => { - switch(type) { - case "N": - return Number.parseInt(param); - default: - return param; - } -} - /***************************************** * HTTP Get method for get single object *