feat: content generation UI, test script, and API docs

This commit is contained in:
cawcenter
2025-12-15 01:56:43 -05:00
parent 0fc881c0ad
commit 63f7470967
8 changed files with 432 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
// API Endpoint: POST /api/god/campaigns/create
import type { APIRoute } from 'astro';
import { pool } from '../../../../lib/db/db';
import { pool } from '../../../../lib/db';
import crypto from 'crypto';
interface CampaignBlueprint {

View File

@@ -1,6 +1,6 @@
// API Endpoint: POST /api/god/campaigns/launch/[id]
import type { APIRoute } from 'astro';
import { pool } from '../../../../../lib/db/db';
import { pool } from '../../../../../lib/db';
import { batchQueue } from '../../../../../lib/queue/config';
export const POST: APIRoute = async ({ params, request }) => {

View File

@@ -1,6 +1,6 @@
// API Endpoint: GET /api/god/campaigns/status/[id]
import type { APIRoute } from 'astro';
import { pool } from '../../../../../lib/db/db';
import { pool } from '../../../../../lib/db';
export const GET: APIRoute = async ({ params, request }) => {
try {