Merge pull request #4 from ThatNerdyPikachu/patch-1

make a JSON endpoint actually send JSON
This commit is contained in:
superwhiskers 2018-06-09 09:51:41 -05:00 committed by GitHub
commit beab6fa8a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ route_debugger.log('Loading \'root/misc\' API routes');
* Description: tests the validity of this server by returning a predefined message
*/
routes.get('/isthisworking', async (req, res) => {
return res.send('{"server": "account.nintendo.net"}');
return res.json({'server': 'account.nintendo.net'});
});
module.exports = routes;