Skip to content

Commit

Permalink
chore: rename api-posts to api-wp
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonkat committed Feb 7, 2025
1 parent 821f183 commit 027277b
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/blog-sitemap.xml/route.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getAllWpBlogCategories, getAllWpPosts } from 'utils/api-posts';
import { getAllWpBlogCategories, getAllWpPosts } from 'utils/api-wp';

export async function GET() {
const headers = new Headers();
Expand Down
2 changes: 1 addition & 1 deletion src/app/blog/(index)/category/[slug]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import BlogGridItem from 'components/pages/blog/blog-grid-item';
import LoadMorePosts from 'components/shared/load-more-posts';
import { BLOG_CATEGORY_BASE_PATH } from 'constants/blog';
import { getBlogCategoryDescription } from 'constants/seo-data';
import { getAllCategories, getCategoryBySlug, getPostsByCategorySlug } from 'utils/api-posts';
import { getAllCategories, getCategoryBySlug, getPostsByCategorySlug } from 'utils/api-wp';
import getMetadata from 'utils/get-metadata';

// eslint-disable-next-line react/prop-types
Expand Down
2 changes: 1 addition & 1 deletion src/app/blog/(index)/layout.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Sidebar from 'components/pages/blog/sidebar';
import Container from 'components/shared/container';
import { getAllCategories } from 'utils/api-posts';
import { getAllCategories } from 'utils/api-wp';

// eslint-disable-next-line react/prop-types
const BlogPageLayout = async ({ children }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/blog/(index)/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import BlogGridItem from 'components/pages/blog/blog-grid-item';
import LoadMorePosts from 'components/shared/load-more-posts';
import { BLOG_BASE_PATH } from 'constants/blog';
import SEO_DATA from 'constants/seo-data';
import { getAllPosts } from 'utils/api-posts';
import { getAllPosts } from 'utils/api-wp';
import getMetadata from 'utils/get-metadata';

export const metadata = getMetadata({ ...SEO_DATA.blog, rssPathname: `${BLOG_BASE_PATH}rss.xml` });
Expand Down
2 changes: 1 addition & 1 deletion src/app/blog/[slug]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import SocialShare from 'components/pages/blog-post/social-share';
import SubscribeForm from 'components/pages/blog-post/subscribe-form';
import Admonition from 'components/shared/admonition';
import LINKS from 'constants/links';
import { getAllWpPosts, getWpPostBySlug } from 'utils/api-posts';
import { getAllWpPosts, getWpPostBySlug } from 'utils/api-wp';
import getFormattedDate from 'utils/get-formatted-date';
import getMetadata from 'utils/get-metadata';
import getReactContentWithLazyBlocks from 'utils/get-react-content-with-lazy-blocks';
Expand Down
2 changes: 1 addition & 1 deletion src/app/blog/rss.xml/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Rss from 'rss';

import { BLOG_BASE_PATH } from 'constants/blog';
import { getAllWpPosts } from 'utils/api-posts';
import { getAllWpPosts } from 'utils/api-wp';

const SITE_URL = process.env.NEXT_PUBLIC_DEFAULT_SITE_URL;

Expand Down
2 changes: 1 addition & 1 deletion src/app/blog/wp-draft-post-preview-page/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import SubscribeForm from 'components/pages/blog-post/subscribe-form';
import Admonition from 'components/shared/admonition';
import LINKS from 'constants/links';
import SEO_DATA from 'constants/seo-data';
import { getWpPreviewPostData } from 'utils/api-posts';
import { getWpPreviewPostData } from 'utils/api-wp';
import getFormattedDate from 'utils/get-formatted-date';
import getMetadata from 'utils/get-metadata';
import getReactContentWithLazyBlocks from 'utils/get-react-content-with-lazy-blocks';
Expand Down
2 changes: 1 addition & 1 deletion src/app/case-studies/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CTA from 'components/shared/cta';
import Layout from 'components/shared/layout';
import LINKS from 'constants/links';
import SEO_DATA from 'constants/seo-data';
import { getAllWpCaseStudiesPosts, getAllWpCaseStudiesCategories } from 'utils/api-posts';
import { getAllWpCaseStudiesPosts, getAllWpCaseStudiesCategories } from 'utils/api-wp';
import getMetadata from 'utils/get-metadata';

export const metadata = getMetadata(SEO_DATA.caseStudies);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Container from 'components/shared/container';
import evolutionOfPostgres from 'images/pages/variable-load/relevant-articles/evolution-of-postgres.jpg';
import { getWpPostBySlug } from 'utils/api-posts';
import { getWpPostBySlug } from 'utils/api-wp';
import getFormattedDate from 'utils/get-formatted-date';

import Slider from './slider';
Expand Down
File renamed without changes.

0 comments on commit 027277b

Please sign in to comment.