mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-30 23:54:15 -05:00
feat: Remove backend cookie and use frontend for auth (#6601)
This commit is contained in:
14
frontend/plugins/app-info.client.ts
Normal file
14
frontend/plugins/app-info.client.ts
Normal 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,
|
||||
},
|
||||
};
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user