From 5fa7ce19c9e75afbda7cc7a3e01358cbbe1f761d Mon Sep 17 00:00:00 2001 From: daniel-locatelli Date: Wed, 17 Apr 2024 11:48:30 +0200 Subject: [PATCH] Included feed and robots files --- package.json | 2 +- src/pages/api/notionPosts.json.ts | 9 --------- src/pages/{_feed.ts => feed.ts} | 0 src/pages/{_robots.txt.ts => robots.txt.ts} | 0 4 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 src/pages/api/notionPosts.json.ts rename src/pages/{_feed.ts => feed.ts} (100%) rename src/pages/{_robots.txt.ts => robots.txt.ts} (100%) diff --git a/package.json b/package.json index 75b9b36..168bf45 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "build-systems-website", "type": "module", - "version": "1.0.0", + "version": "2.0.0", "private": true, "scripts": { "dev": "astro dev", diff --git a/src/pages/api/notionPosts.json.ts b/src/pages/api/notionPosts.json.ts deleted file mode 100644 index 78907c4..0000000 --- a/src/pages/api/notionPosts.json.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { APIRoute } from "astro"; -import { getAllPosts } from "../../lib/notion/client"; -import type { Post } from "../../lib/interfaces"; - -export const GET: APIRoute = async (context) => { - // console.log("Context", context); - const posts = await getAllPosts(); - return new Response(JSON.stringify(posts)); -}; diff --git a/src/pages/_feed.ts b/src/pages/feed.ts similarity index 100% rename from src/pages/_feed.ts rename to src/pages/feed.ts diff --git a/src/pages/_robots.txt.ts b/src/pages/robots.txt.ts similarity index 100% rename from src/pages/_robots.txt.ts rename to src/pages/robots.txt.ts