From 00a5a6c045e920edf98cc633a955e6f5ffe8fa37 Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Tue, 24 Feb 2026 00:00:35 +0100 Subject: [PATCH] Add config to disable registration --- front/src/AppNavBar.vue | 10 +++++++++- front/src/api.js | 8 ++++++++ internal/apitest/get_appinfo_test.go | 30 ++++++++++++++++++++++++++++ internal/dto/out.go | 4 ++++ internal/middleware/auth.go | 5 +++++ internal/routes/appinfo.go | 12 +++++++++++ internal/setup/setup.go | 4 ++++ 7 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 internal/apitest/get_appinfo_test.go create mode 100644 internal/routes/appinfo.go diff --git a/front/src/AppNavBar.vue b/front/src/AppNavBar.vue index 2792999..b74c5e3 100644 --- a/front/src/AppNavBar.vue +++ b/front/src/AppNavBar.vue @@ -4,6 +4,8 @@ import NavBarSearch from './NavBarSearch.vue' import BarcodeModal from './BarcodeModal.vue' import { useAuthStore } from './auth.store.js' + import { getAppInfo } from './api.js' + import { onMounted } from 'vue' const authStore = useAuthStore(); const router = useRouter(); @@ -16,6 +18,12 @@ router.push('/'); } + const appInfo = ref(null); + const appInfoErr = ref(null); + + onMounted(() => { + getAppInfo(appInfo, appInfoErr); + })