Skip to content

Commit acaaeb9

Browse files
committed
feat: add CSV to JSON conversion for Arizona veterinarians
- Implemented a new module to read a CSV file containing veterinarian data. - Parsed the CSV to filter active veterinarians and mapped the data to a strongly-typed structure. - Saved the filtered records as a JSON file for further use.
1 parent c65961f commit acaaeb9

8 files changed

Lines changed: 35184 additions & 54 deletions

File tree

app/api/verify/alaska/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export async function GET(request: NextRequest) {
1010
const key = "alaska";
1111
const { search } = new URL(request.url);
1212
const url =
13-
"https://raw.githubusercontent.com/BorDevTech/ClearView/refs/heads/main/app/api/verify/missouri/VET.json" +
13+
"https://raw.githubusercontent.com/BorDevTech/ClearView/refs/heads/main/data/alaskaVets.json" +
1414
(search || "");
1515

1616
try {

app/api/verify/alberta/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ export async function GET(request: NextRequest) {
5252
// Optionally, sync the blob after update
5353
const blob = await BlobSync(key, results);
5454
return NextResponse.json({ count: results.length, blob, results });
55-
} catch (fallbackError) {
55+
}
56+
catch (fallbackError) {
5657
return NextResponse.json({
5758
ok: false,
5859
error: fallbackError instanceof Error ? fallbackError.message : `Failed to fetch ${key} data`,

app/api/verify/arizona/arizonaVets.csv

Lines changed: 3504 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)