mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-18 22:11:42 +01:00
lint code
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
export default defineNuxtRouteMiddleware(async (to) => {
|
||||
let isMaintenance = ref<Boolean>(true)
|
||||
const isMaintenance = ref<boolean>(true)
|
||||
const { $trpc } = useNuxtApp()
|
||||
|
||||
try {
|
||||
isMaintenance.value = await $trpc.maintenance.is.query()
|
||||
} catch (error) {
|
||||
}
|
||||
catch (error) {
|
||||
return navigateTo('/maintenance')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user