diff --git a/server/controller/link.js b/server/controller/link.js index 0231892..14f831f 100644 --- a/server/controller/link.js +++ b/server/controller/link.js @@ -49,4 +49,8 @@ module.exports.clickLink = async (accessId, domainName) => { module.exports.createLink = async (configuration) => { return await Link.create(configuration); +} + +module.exports.editLink = async (id, configuration) => { + return await Link.update(configuration, {where: {id}}); } \ No newline at end of file