Public
Back
Version 1
10/23/2023
let { valTownInspoList } = await import("https://esm.town/v/rodrigotello/valTownInspoList");
import { isValTownTeam } from "https://esm.town/v/stevekrouse/isValTownTeam?v=3";
import { verifyAPIAuth } from "https://esm.town/v/stevekrouse/verifyAPIAuth?v=13";
export async function updateInspoList(newList, auth) {
let handle = await verifyAPIAuth(auth);
if (isValTownTeam(handle)) {
valTownInspoList = newList;
return "Updated";
}
else {
return "Unauthenticated";
}
}
// Forked from @stevekrouse.updateInspoList
Updated: October 23, 2023