You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
534 B
18 lines
534 B
/**
|
|
* GET /api/test/credentials
|
|
*
|
|
* Returns test user credentials for automated testing
|
|
*
|
|
* ⚠️ SECURITY: This endpoint is ONLY available in development mode.
|
|
* It returns 404 in production to prevent credential exposure.
|
|
*
|
|
* Usage in tests:
|
|
* ```typescript
|
|
* const response = await fetch('http://localhost:3000/api/test/credentials')
|
|
* const { email, password } = await response.json()
|
|
* ```
|
|
*/
|
|
|
|
import { createTestCredentialsEndpoint } from '../../utils/test-helpers'
|
|
|
|
export default createTestCredentialsEndpoint()
|
|
|