i701 0fd269df31
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m58s
refactor: migrate authentication and signup flow to use external API and improve type safety
2025-01-24 11:42:38 +05:00

11 lines
276 B
TypeScript

"use server";
import type { Atoll, DataResponse } from "@/lib/backend-types";
export async function getAtollsWithIslands(): Promise<DataResponse<Atoll>> {
const response = await fetch(
`${process.env.SARLINK_API_BASE_URL}/api/auth/atolls`,
);
return response.json();
}