Nuxt/examples/with-middleware/pages/forbidden.vue

16 lines
227 B
Vue

<template>
<div>
Forbidden
</div>
</template>
<script setup>
definePageMeta({
// This is an example of inline middleware
middleware: () => {
console.log('Strictly forbidden.')
return false
}
})
</script>