add more strapi shit
This commit is contained in:
parent
18bde0daca
commit
6fa049504b
24 changed files with 595 additions and 62 deletions
|
|
@ -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({});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue