Is there a way to implement auth middleware for individual routes using Class Components?
How can I achieve the same functionality as this:
<script>
export default {
middleware: 'auth'
}
</script>
The following method does not seem to work:
<script>
import { Vue, Component } from 'nuxt-property-decorator'
@Component
export default class Profile extends Vue {
middleware = 'auth'
}
</script>