mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-02-21 18:42:00 +00:00
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m58s
11 lines
276 B
TypeScript
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();
|
|
}
|