Added slugified urls to documents

This commit is contained in:
Jori Lallo
2016-05-25 22:38:45 -07:00
parent 4c4a78c559
commit 1b7dff92d9
3 changed files with 22 additions and 0 deletions

View File

@ -56,6 +56,7 @@ export function presentAtlas(atlas, includeRecentDocuments=false) {
export async function presentDocument(document, includeAtlas=false) {
const data = {
id: document.id,
url: document.buildUrl(),
title: document.title,
text: document.text,
html: document.html,