Add WIP for content and creators

This commit is contained in:
Jonathan Bourdon
2024-07-02 04:30:46 -04:00
parent cb02cce5b4
commit 473cc072c8
6 changed files with 191 additions and 95 deletions

View File

@@ -27,11 +27,11 @@ const contents = ref();
onBeforeMount(async () => {
if (props.creatorId == null) return
try {
const response = await client.get(`/api/contents/user/${props.creatorId}`)
if (response.status >= 200 && response.status < 300) {
if (response.status >= 200 && response.status < 300) {
contents.value = response.data
console.table(contents.value)
}
} catch (error) {
console.error("Failed to fetch posts", error);