From 6ab9f138c4dc5c58e0cba57a725bb91f5c2e3256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sun, 27 Nov 2016 18:12:45 +0100 Subject: [PATCH] Clean custom-routes example --- examples/custom-routes/nuxt.config.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/examples/custom-routes/nuxt.config.js b/examples/custom-routes/nuxt.config.js index 9c8e08af7a..9c26b5ff34 100644 --- a/examples/custom-routes/nuxt.config.js +++ b/examples/custom-routes/nuxt.config.js @@ -1,11 +1,4 @@ -const axios = require('axios') - module.exports = { - env: { - token: 'Hello :)', - num: 3, - bool: true - }, router: { routes: [ { name: 'user', path: '/users/:id(\\d+)', component: 'pages/_user' } @@ -13,17 +6,5 @@ module.exports = { }, build: { vendor: ['axios'] - }, - generate: { - routeParams: { - '/users/:id(\\d+)': function () { - return axios.get('http://jsonplaceholder.typicode.com/users') - .then((res) => { - return res.data.map((user) => { - return { id: user.id } - }) - }) - } - } } }