Skip to content

Commit

Permalink
fix admin setting issue (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu authored May 12, 2023
1 parent b06032b commit 34895da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/api/system-information.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ router.post('/', async(req, res) => {

router.get('/', async(req, res) => {
const [sysInfo] = await SystemInformation.retrieveAll();
res.status(200).json(sysInfo);
res.status(200).json(sysInfo || {});
});

module.exports = router;

2 comments on commit 34895da

@avoylenko
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xquanluu why the SystemInformation endpoints specification are missing in swagger documentation?

@xquanluu
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @avoylenko for pointing that out,

I missed this work actually, I created #170 I will start working on this really soon.

Please sign in to comment.