module.exports = {
  getFPKey: (request, response) => {
    let FPKey;
    try {
      FPKey = require('./filePicker.js');
    } catch (err) {
      console.log('error loading filePicker.js', err);
      FPKey = process.env.FPKey;
    } finally {
      if (FPKey) {
        response.status(201);
        response.send(FPKey);
      } else {
        response.status(404);
        response.send('failed to load FPKey');
      }
    }
  },
};

@@ -114,16 +114,32 @@
 ker.js')
+.FILE_PICKER_KEY
 ;%0A    %7D 
@@ -305,9 +305,9 @@
 s(20
-1
+0
 );%0A 
@@ -326,18 +326,27 @@
 nse.
-send(
+json(%7B key: 
 FPKey
+ %7D
 );%0A 
@@ -410,13 +410,21 @@
 nse.
-send(
+json(%7B data: 
 'fai
@@ -441,16 +441,18 @@
 d FPKey'
+ %7D
 );%0A     

refactor getFPKey try catch block to be cleaner + send object