Fix revisions link

This commit is contained in:
rijkvanzanten
2020-07-24 15:48:11 -04:00
parent e8e6f9b6d7
commit 5123729b9e

View File

@@ -112,9 +112,16 @@ export default defineComponent({
loading.value = true;
try {
/** @todo use endpoint thing where startswith directus_ etc */
const response = await api.get(`/items/${collection}/${primaryKey}/revisions`, {
const response = await api.get(`/revisions`, {
params: {
filter: {
collection: {
_eq: collection,
},
item: {
_eq: primaryKey,
},
},
fields: [
'id',
'data',