- Remove .bmad-core/ and web-bundles/ (AI tool configs) - Remove tmp-home/ directories and cache files - Move test scripts to scripts/ directory - Move design file to docs/ directory - Remove duplicate AGENTS.md (content in CLAUDE.md) - Remove duplicate sample-app-config.toml - Update .gitignore with missing entries - Fix hardcoded credentials in check-migrations.js - Update IMPLEMENTATION_SUMMARY.md date 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
30 lines
765 B
JavaScript
30 lines
765 B
JavaScript
const fetch = require('node-fetch');
|
|
|
|
async function testAPI() {
|
|
try {
|
|
console.log('Testing register-email API...');
|
|
|
|
const response = await fetch('http://localhost:3001/api/v1/auth/register-email', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
body: JSON.stringify({
|
|
email: 'testuser@example.com',
|
|
password: 'TestPass123',
|
|
displayName: 'Test User'
|
|
})
|
|
});
|
|
|
|
console.log('Response status:', response.status);
|
|
console.log('Response headers:', Object.fromEntries(response.headers));
|
|
|
|
const data = await response.text();
|
|
console.log('Response body:', data);
|
|
|
|
} catch (error) {
|
|
console.error('Error:', error.message);
|
|
}
|
|
}
|
|
|
|
testAPI(); |