mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 13:50:36 +01:00
12 lines
241 B
JavaScript
12 lines
241 B
JavaScript
'use strict';
|
|
|
|
const fs = require('fs').promises;
|
|
const helpers = require('../helpers');
|
|
|
|
const Files = module.exports;
|
|
|
|
Files.delete = async (req, res) => {
|
|
await fs.unlink(res.locals.cleanedPath);
|
|
helpers.formatApiResponse(200, res);
|
|
};
|