Initial commit: Gold Trading Simulator with AI-powered analysis

This commit is contained in:
Krikorios
2025-11-16 00:50:04 +02:00
commit 72c1d3adb7
128 changed files with 16232 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
from __future__ import annotations
from fastapi import APIRouter, HTTPException
from typing import Any, Dict, List
from app.services.prompts import list_templates, get_template
router = APIRouter(prefix="/prompt-templates", tags=["Prompts"])
@router.get("")
async def list_prompt_templates() -> List[Dict[str, Any]]:
return list_templates()
@router.get("/{name}")
async def get_prompt_template(name: str) -> Dict[str, Any]:
try:
return get_template(name)
except KeyError:
raise HTTPException(status_code=404, detail="Template not found")