fix: reorder script loading to prevent AskAI function override

Move OAuth assets inclusion to end of body to ensure Ask-AI
JavaScript loads before OAuth comment system scripts.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-06-14 18:18:29 +09:00
parent aa9ff4ec6c
commit 8e961292cb
2 changed files with 4 additions and 6 deletions

View File

@@ -1,8 +1,5 @@
# AI機能をai.gpt MCP serverにリダイレクト
/api/ask https://ai-gpt-mcp.syui.ai/ask 200
# Ollama API proxy (Cloudflare Workers)
/api/ollama-proxy https://ollama-proxy.YOUR-SUBDOMAIN.workers.dev/:splat 200
# Ask-AI機能をOllamaにプロキシ
/api/ask https://ollama.syui.ai/api/generate 200
# OAuth routes
/oauth/* /oauth/index.html 200

View File

@@ -15,7 +15,6 @@
<link rel="stylesheet" href="/pkg/icomoon/style.css">
<link rel="stylesheet" href="/pkg/font-awesome/css/all.min.css">
{% include "oauth-assets.html" %}
{% block head %}{% endblock %}
</head>
<body>
@@ -92,5 +91,7 @@
<script src="/js/ask-ai.js"></script>
<script src="/js/theme.js"></script>
{% include "oauth-assets.html" %}
</body>
</html>