@sap/cds
Version:
SAP Cloud Application Programming Model - CDS for Node.js
18 lines (14 loc) • 501 B
JavaScript
/**
* @param {import('../RestAdapter')} adapter
* the adapter instance in which this middleware is used
*/
module.exports = exports = adapter => exports.delete.bind(adapter)
/**
* @type {import('express').Handler}
* @this import('../RestAdapter')
*/
exports.delete = async function rest_delete (req, res) {
const { _query: query, _data: data, _params: params } = req
await this.service.dispatch(this.request4({ query, data, params, req, res }))
return { result: null, status: 204 }
}