Browse Source

Keep success and error formatting consistent

pull/15/head
Luke Childs 5 years ago
parent
commit
31f938384f
  1. 5
      api/nicehash/nicehash.js

5
api/nicehash/nicehash.js

@ -9,7 +9,10 @@ exports.handler = async () => {
'Cache-Control': 'public, s-max-age=600', 'Cache-Control': 'public, s-max-age=600',
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
body: JSON.stringify(await getNiceHashData()) body: JSON.stringify({
error: false,
data: await getNiceHashData()
})
}; };
} catch (error) { } catch (error) {
return { return {

Loading…
Cancel
Save