diff --git a/backend/src/routes/articles.ts b/backend/src/routes/articles.ts
index f52eb5a..eb28300 100644
--- a/backend/src/routes/articles.ts
+++ b/backend/src/routes/articles.ts
@@ -6,7 +6,7 @@ import express, { Request, Response } from "express";
const db = drizzle(process.env.DATABASE_URL!);
export const articlesRouter = express.Router();
-articlesRouter.get("/getAllArticles", async (req: Request, res: Response) => {
+articlesRouter.get("/getAllArticles", async (_, res: Response) => {
const resp = await db.select().from(articles);
res.json({ resp });
});
@@ -20,6 +20,15 @@ articlesRouter.get("/getArticle/:articleId", async (req: Request, res: Response)
res.json({ resp });
});
+articlesRouter.get("/getArticleBySlug/:slug", async (req: Request, res: Response) => {
+ const { slug } = req.params;
+
+ const resp = await db.select()
+ .from(articles)
+ .where(eq(articles.slug, slug));
+ res.json({ resp });
+});
+
articlesRouter.post("/postArticle", async (req: Request, res: Response) => {
const resp = await db
.insert(articles)
diff --git a/backend/src/routes/blocks.ts b/backend/src/routes/blocks.ts
index 144bbff..b0b5b3b 100644
--- a/backend/src/routes/blocks.ts
+++ b/backend/src/routes/blocks.ts
@@ -5,3 +5,5 @@ import express, { Request, Response } from "express";
const db = drizzle(process.env.DATABASE_URL!);
export const blocksRouter = express.Router();
+
+// TODO: implement
diff --git a/backend/src/routes/images.ts b/backend/src/routes/images.ts
index bcf3822..02dd6cf 100644
--- a/backend/src/routes/images.ts
+++ b/backend/src/routes/images.ts
@@ -5,3 +5,5 @@ import express, { Request, Response } from "express";
const db = drizzle(process.env.DATABASE_URL!);
export const imagesRouter = express.Router();
+
+// TODO: Implement
diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx
index 9451c44..dd94727 100644
--- a/frontend/src/main.tsx
+++ b/frontend/src/main.tsx
@@ -13,7 +13,7 @@ createRoot(document.getElementById('root')!).render(