This commit is contained in:
Jai A
2020-10-02 21:05:43 -07:00
parent d85a063db8
commit f561de200d
6 changed files with 59 additions and 8 deletions

View File

@@ -45,6 +45,9 @@ export default {
},
],
},
router: {
middleware: ['auth'],
},
/*
** Global CSS
*/
@@ -72,7 +75,22 @@ export default {
modules: [
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios',
'@nuxtjs/auth',
],
auth: {
strategies: {
local: {
endpoints: {
user: {
url: 'https://api.modrinth.com/api/v1/user',
method: 'get',
propertyName: false,
},
},
tokenType: false,
},
},
},
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options