mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-02 09:48:22 +00:00
refactor: migrate authentication and signup flow to use external API and improve type safety
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m58s
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m58s
This commit is contained in:
10
queries/atoll.ts
Normal file
10
queries/atoll.ts
Normal file
@ -0,0 +1,10 @@
|
||||
"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();
|
||||
}
|
Reference in New Issue
Block a user