mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-07-31 00:26:11 -05:00
Merge pull request #4 from ThatNerdyPikachu/patch-1
make a JSON endpoint actually send JSON
This commit is contained in:
commit
beab6fa8a4
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user