summaryrefslogtreecommitdiffstats
path: root/src/services/graphql
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/graphql')
-rw-r--r--src/services/graphql/queries.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/services/graphql/queries.ts b/src/services/graphql/queries.ts
index 652caa1..518cf75 100644
--- a/src/services/graphql/queries.ts
+++ b/src/services/graphql/queries.ts
@@ -1,7 +1,6 @@
import { Slug } from '@ts/types/app';
import { Article, PostBy } from '@ts/types/articles';
import { AllPostsSlug, PostsList, RawPostsList } from '@ts/types/blog';
-import { HomePage, HomePageBy } from '@ts/types/homepage';
import { Page, PageBy } from '@ts/types/pages';
import {
AllSubjectsSlug,
@@ -238,24 +237,6 @@ export const getPostBySlug = async (slug: string): Promise<Article> => {
// Pages query
//==============================================================================
-export const getHomePage = async (): Promise<HomePage> => {
- const query = gql`
- query HomePage {
- nodeByUri(uri: "/") {
- ... on Page {
- id
- content
- }
- }
- }
- `;
-
- const response = await fetchApi<HomePageBy>(query, null);
- const homepage = response.nodeByUri;
-
- return homepage;
-};
-
export const getPageByUri = async (slug: string): Promise<Page> => {
const query = gql`
query PageByUri($slug: String!) {