forked from UKSOURCE/hailearning.edu.vn
Merge pull request 'feat: Udpate api/index.ts' (#20) from fea/thanh-02022026-news into main
Reviewed-on: UKSOURCE/hailearning.edu.vn#20
This commit is contained in:
@@ -2,5 +2,6 @@
|
|||||||
* Export all API functions
|
* Export all API functions
|
||||||
*/
|
*/
|
||||||
export * from "./blogsApi";
|
export * from "./blogsApi";
|
||||||
|
export * from "./homeApi";
|
||||||
export * from "./footerApi";
|
export * from "./footerApi";
|
||||||
export * from "./servicesApi";
|
export * from "./servicesApi";
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import Achievements from './components/home/Achievements';
|
|||||||
import Partners from './components/home/Partners';
|
import Partners from './components/home/Partners';
|
||||||
import BlogPreview from './components/home/BlogPreview';
|
import BlogPreview from './components/home/BlogPreview';
|
||||||
import localHomeData from './home.json';
|
import localHomeData from './home.json';
|
||||||
import { fetchHomeData } from '@/api';
|
|
||||||
import { getCmsImageUrl } from '@/utils/image';
|
import { getCmsImageUrl } from '@/utils/image';
|
||||||
|
import { fetchHomeData } from '@/api';
|
||||||
|
|
||||||
export default async function Home() {
|
export default async function Home() {
|
||||||
// Fetch home data (blog aggregation is now handled by the backend)
|
// Fetch home data (blog aggregation is now handled by the backend)
|
||||||
|
|||||||
Reference in New Issue
Block a user