Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
feat: ✨ Possible to check payment_methods route
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolfx committed Mar 15, 2022
1 parent 195a575 commit 56ddbb3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Server/Routes/v3/Configs/Config.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ class ConfigRouter
return APISuccess(Object.fromEntries(CacheConfig))(res);
});

this.router.get("/payment_methods", (req, res) =>
{
return APISuccess(A_CC_Payments)(res);
});

this.router.post("/payment_methods", EnsureAdmin(), async (req, res) =>
{
const { payment_methods } = req.body;
Expand All @@ -73,7 +78,7 @@ class ConfigRouter
await CacheConfig.save();

return APISuccess(Object.fromEntries(CacheConfig))(res);
})
});

}

Expand Down

0 comments on commit 56ddbb3

Please sign in to comment.