mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-04 11:57:44 +02:00
feat: flag rescinding logic + api method
This commit is contained in:
@@ -32,6 +32,11 @@ Flags.delete = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res);
|
||||
};
|
||||
|
||||
Flags.rescind = async (req, res) => {
|
||||
await api.flags.rescind(req, { flagId: req.params.flagId });
|
||||
helpers.formatApiResponse(200, res);
|
||||
};
|
||||
|
||||
Flags.appendNote = async (req, res) => {
|
||||
const { note, datetime } = req.body;
|
||||
const payload = await api.flags.appendNote(req, {
|
||||
|
||||
Reference in New Issue
Block a user