fix auth (#24), update deps, local user_locale

This commit is contained in:
les
2019-09-17 16:05:46 +02:00
parent 5f94f72912
commit 46bc1854de
7 changed files with 36 additions and 33 deletions

View File

@@ -1,5 +1,6 @@
import acceptLanguage from 'accept-language'
export default function ({ req, app, store }) {
export default async function ({ req, app, store }) {
if (process.server) {
const acceptedLanguages = req.headers['accept-language']
const supportedLanguages = ['en', 'it', 'es']