Skip to content

Commit

Permalink
refactor(portfolioHandler): remove unused definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
JimStockwell committed Nov 9, 2020
1 parent 15cf9f3 commit 738e8ba
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions amplify/backend/function/portfolioHandler/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: "*/*"}));
Expand All @@ -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 *
Expand Down

0 comments on commit 738e8ba

Please sign in to comment.