fix: Update login API endpoint paths for authentication routes

- Modify fetch URLs to use '/api/auth/' prefix for PIN verification endpoints
- Update '/api/pin-required' and '/api/verify-pin' to '/api/auth/pin-required' and '/api/auth/verify-pin'
- Ensure consistent routing for authentication-related API calls

Closes #31
This commit is contained in:
Greirson Lee-Thorp
2025-02-19 08:27:23 -08:00
parent 7e0f3f85d7
commit aa25ef92f8

View File

@@ -125,7 +125,7 @@
// Handle form submission
const verifyPin = async (pin) => {
try {
const response = await fetch('/api/verify-pin', {
const response = await fetch('/api/auth/verify-pin', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ pin })
@@ -208,7 +208,7 @@
};
// Check PIN length and initialize
fetch('/api/pin-required')
fetch('/api/auth/pin-required')
.then(response => response.json())
.then(data => {
if (data.required) {