removed link remnants

This commit is contained in:
zadam
2019-08-27 21:24:31 +02:00
parent ca2f14a2d0
commit 242bea236f
15 changed files with 53 additions and 532 deletions

View File

@@ -1,28 +0,0 @@
"use strict";
const repository = require('../../services/repository');
async function getLinks(req) {
const note = await repository.getNote(req.params.noteId);
if (!note) {
return [404, `Note ${req.params.noteId} not found`];
}
return await note.getLinks();
}
async function getIncomingLinks(req) {
const note = await repository.getNote(req.params.noteId);
if (!note) {
return [404, `Note ${req.params.noteId} not found`];
}
note.getTargetRelations()
}
module.exports = {
getLinks,
getIncomingLinks
};