First pass at API

This commit is contained in:
Tom Moor
2018-05-12 23:14:06 -07:00
parent dded458582
commit 9000aa3aac
10 changed files with 256 additions and 19 deletions

View File

@@ -0,0 +1,15 @@
// @flow
import { Share } from '../models';
import { presentUser } from '.';
function present(ctx: Object, share: Share) {
return {
id: share.id,
user: presentUser(ctx, share.user),
documentTitle: share.document.title,
createdAt: share.createdAt,
updatedAt: share.updatedAt,
};
}
export default present;