mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-02 03:38:22 +00:00
refactor: replace custom authentication middleware with NextAuth, remove unused authentication pages, and update matcher configuration
This commit is contained in:
12
queries/islands.ts
Normal file
12
queries/islands.ts
Normal file
@ -0,0 +1,12 @@
|
||||
"use server";
|
||||
|
||||
export async function getIslands() {
|
||||
const res = await fetch(`${process.env.SARLINK_API_BASE_URL}/islands/`, {
|
||||
method: "GET",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
const data = await res.json();
|
||||
return data;
|
||||
}
|
Reference in New Issue
Block a user