feat: Remove backend cookie and use frontend for auth (#6601)

This commit is contained in:
Michael Genson
2025-11-28 19:29:16 -06:00
committed by GitHub
parent 8f1ce1a1c3
commit 07ecd88685
20 changed files with 72 additions and 172 deletions

View File

@@ -0,0 +1,14 @@
import axios from "axios";
import type { AppInfo } from "~/lib/api/types/admin";
export default defineNuxtPlugin({
async setup() {
const { data } = await axios.get<AppInfo>("/api/app/about");
return {
provide: {
appInfo: data,
},
};
},
});