mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
25 lines
663 B
TypeScript
25 lines
663 B
TypeScript
/**
|
|
* Context routes - HTTP API for context file operations
|
|
*
|
|
* Provides endpoints for managing context files including
|
|
* AI-powered image description generation.
|
|
*/
|
|
|
|
import { Router } from 'express';
|
|
import { createDescribeImageHandler } from './routes/describe-image.js';
|
|
import { createDescribeFileHandler } from './routes/describe-file.js';
|
|
|
|
/**
|
|
* Create the context router
|
|
*
|
|
* @returns Express router with context endpoints
|
|
*/
|
|
export function createContextRoutes(): Router {
|
|
const router = Router();
|
|
|
|
router.post('/describe-image', createDescribeImageHandler());
|
|
router.post('/describe-file', createDescribeFileHandler());
|
|
|
|
return router;
|
|
}
|