🐛 Fixed explore-screen

This commit is contained in:
Mawoka
2022-04-14 17:47:34 +02:00
parent b9687a92cd
commit 2b288b4626
6 changed files with 35 additions and 36 deletions
+12 -1
View File
@@ -1,6 +1,17 @@
<script lang="ts">
const getData = async () => {
const response = await fetch('/api/v1/search/?q=*');
const response = await fetch('/api/v1/search/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
q: '*',
sort: [
"created_at:desc"
]
})
});
return await response.json();
};
</script>