Admin Panel
Manage your blog posts, categories, tags, and images
Upload Images
Upload images for blog posts
Open Uploader
Posts
Create, edit, and manage blog posts
API Endpoints:
- GET /api/posts
- POST /api/posts
- PATCH /api/posts/[id]
- DELETE /api/posts/[id]
Categories
Organize posts with categories
API Endpoints:
- GET /api/categories
- POST /api/categories
Tags
Tag posts for better discoverability
API Endpoints:
- GET /api/tags
- POST /api/tags
🔐 Authentication Required
All write operations (POST, PATCH, DELETE) require an API key for authentication.
Setup Steps:
- Generate a secure API key:
openssl rand -base64 32 - For local dev: Add to
.dev.varsfile - For production: Run
wrangler secret put BLOG_API_KEY
Example: Create a new post with authentication
curl -X POST https://your-domain.com/api/posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "My New Post",
"slug": "my-new-post",
"content": "# Hello World\n\nThis is my post content.",
"excerpt": "A brief description",
"status": "published",
"author": "Your Name"
}'📖 For complete security documentation, see SECURITY.md
Getting Started
Use the API endpoints to manage your blog content. You can use tools like:
- cURL - Command line HTTP client
- Postman - API development platform
- Thunder Client - VS Code extension
- Build a custom admin UI using the API routes