PLD: add missing slash in API endpoint
PLD: simplify conditionals