1
0
Fork 0
freesewing/sites/backend/src/controllers/confirmations.mjs
2023-01-27 21:10:06 +01:00

16 lines
469 B
JavaScript

import { ConfirmationModel } from '../models/confirmation.mjs'
export function ConfirmationsController() {}
/*
* Read confirmation
*
* This is the endpoint that handles reading confirmations
* See: https://freesewing.dev/reference/backend/api/confirmation
*/
ConfirmationsController.prototype.read = async (req, res, tools) => {
const Confirmation = new ConfirmationModel(tools)
await Confirmation.guardedRead(req)
return Confirmation.sendResponse(res)
}