ship it with all
This commit is contained in:
parent
1e2e25650d
commit
60c76f1d55
2 changed files with 15 additions and 4 deletions
|
|
@ -77,6 +77,13 @@ export async function randomHandler(): Promise<ApiResponse | { message: string }
|
|||
return cachedResults[randomIndex];
|
||||
}
|
||||
|
||||
export async function allHandler(): Promise<string[] | { message: string }> {
|
||||
if (cachedResults.length === 0) {
|
||||
return { message: 'No data yet' };
|
||||
}
|
||||
return cachedResults.map(result => result.clientIP);
|
||||
}
|
||||
|
||||
/**
|
||||
* Detailed debug endpoint with all possible headers
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue