add more strapi shit
All checks were successful
Deployment / Deploy website (push) Successful in 2m57s
Deployment / Deploy strapi (push) Successful in 2m54s

This commit is contained in:
Benjamin Palko 2025-05-12 18:12:24 -04:00
parent 18bde0daca
commit 6fa049504b
24 changed files with 595 additions and 62 deletions

View file

@ -15,6 +15,22 @@ export class Strapi {
});
}
async SiteBackground() {
const background = this.client.single('site-background');
return await background.find({
populate: ['Background']
});
}
async About() {
const about = this.client.single('about');
return await about.find({
populate: ['Titles', 'Photo', 'Activities']
});
}
async Blogs() {
const blogs = this.client.collection('blogs');
@ -30,4 +46,18 @@ export class Strapi {
populate: ['Header', 'Topics']
});
}
async Experiences() {
const experiences = this.client.collection('experiences');
return await experiences.find({
populate: ['Logo']
});
}
async Education() {
const education = this.client.collection('educations');
return await education.find({});
}
}