🐛 Fixed explore-screen
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user