feat: implement auth middleware and protect review page route

This commit is contained in:
Esa Kataja
2025-05-10 14:55:38 +03:00
parent fdbc7a2b23
commit 3203131f4a
2 changed files with 24 additions and 0 deletions
+10
View File
@@ -1,4 +1,14 @@
<script setup lang="ts">
import { useRuntimeConfig } from '#imports'
// Use definePageMeta to set auth middleware
definePageMeta({
middleware: 'auth'
})
const config = useRuntimeConfig()
const apiBase = config.public.apiBase
const { id } = useRoute().params
interface Artist {