Nuxt/examples/auth-routes/pages/secret.vue

14 lines
312 B
Vue
Raw Normal View History

2016-12-07 16:03:52 +00:00
<template>
<div>
<h1>Super secret page</h1>
2016-12-07 18:23:08 +00:00
<p>If you try to access this URL not connected, you will be redirected to the home page (server-side or client-side)</p>
2016-12-16 17:12:38 +00:00
<nuxt-link to="/">Back to the home page</nuxt-link>
2016-12-07 16:03:52 +00:00
</div>
</template>
<script>
export default {
2017-02-03 14:09:27 +00:00
middleware: 'auth'
2016-12-07 16:03:52 +00:00
}
</script>