9ffe734275
Deploy / deploy (push) Successful in 7m40s
- /api/articles[/slug]: GET/PUT/POST/DELETE, article JSON stored in PostgreSQL (schema analysis) - /api/tool-taxonomy: categories (tree), per-paper tools, each tool in one or more categories - /contents/tools-of-agents: category table with roll-up and links to the papers; removed "By kind of contribution" and "Recent papers" - content moves out of the repo: removed content/articles, load-articles.js, agent-tools.ts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FbMbJPadPzVwvt9rU9GBNo
12 lines
382 B
TypeScript
12 lines
382 B
TypeScript
import { route, bodyObject, bigBody } from '../../../lib/api';
|
|
import { listArticles, saveArticle } from '../../../lib/article-store';
|
|
|
|
export const config = bigBody;
|
|
|
|
// GET /api/articles list
|
|
// POST /api/articles create or replace an article (slug in the body)
|
|
export default route({
|
|
GET: () => listArticles(),
|
|
POST: (req) => saveArticle(bodyObject(req)),
|
|
});
|