mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 01:13:11 +08:00
Small fixes
This commit is contained in:
@@ -20,7 +20,7 @@ exports.createPair = asyncWrapper(async (req, res, next) => {
|
||||
exports.getAllPairs = asyncWrapper(async (req, res, next) => {
|
||||
const pairs = await Config.findAll();
|
||||
|
||||
res.status(201).json({
|
||||
res.status(200).json({
|
||||
success: true,
|
||||
data: pairs
|
||||
})
|
||||
@@ -38,7 +38,7 @@ exports.getSinglePair = asyncWrapper(async (req, res, next) => {
|
||||
return next(new ErrorResponse(`Key ${req.params.key} was not found`, 404));
|
||||
}
|
||||
|
||||
res.status(201).json({
|
||||
res.status(200).json({
|
||||
success: true,
|
||||
data: pair
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user