Nuxt/examples/routing/middleware/pages/forbidden.vue

16 lines
227 B
Vue
Raw Permalink Normal View History

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