Commit 2fa6c455 authored by Your Name's avatar Your Name

Fix JavaScript syntax errors in providers.html template

- Fixed malformed url_for() calls in uploadCodexFile function (extra quotes)
- Fixed hardcoded /dashboard/claude/auth/complete URL to use url_for()
- All JavaScript syntax errors resolved for proper template rendering
parent 2aa9d96d
...@@ -1057,7 +1057,7 @@ async function uploadCodexFile(providerKey, file) { ...@@ -1057,7 +1057,7 @@ async function uploadCodexFile(providerKey, file) {
formData.append('file_type', 'credentials'); formData.append('file_type', 'credentials');
try { try {
const response = await fetch(''{{ url_for(request, "/dashboard/providers/upload-auth-file") }}'', { const response = await fetch('{{ url_for(request, "/dashboard/providers/upload-auth-file") }}', {
method: 'POST', method: 'POST',
body: formData body: formData
}); });
...@@ -1484,7 +1484,7 @@ async function authenticateClaude(key) { ...@@ -1484,7 +1484,7 @@ async function authenticateClaude(key) {
// Try to complete authentication // Try to complete authentication
try { try {
const completeResponse = await fetch('/dashboard/claude/auth/complete', { const completeResponse = await fetch('{{ url_for(request, "/dashboard/claude/auth/complete") }}', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment