about summary refs log tree commit diff
path: root/nuxt.config.js
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-11 19:08:14 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-11 19:08:14 +0200
commit1e248151d5bd60e8c94ab26f272e5e9cf900ca7a (patch)
tree1202575ae8f069e05b08babe899fb614c02e3366 /nuxt.config.js
parent72549ed7b81fc01445fecdb7889bab4cf2a1590f (diff)
downloadpuszcza-1e248151d5bd60e8c94ab26f272e5e9cf900ca7a.tar.gz
puszcza-1e248151d5bd60e8c94ab26f272e5e9cf900ca7a.zip
Add folder structure parser
Diffstat (limited to 'nuxt.config.js')
-rw-r--r--nuxt.config.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuxt.config.js b/nuxt.config.js
index a0ae413..caccc2b 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -1,3 +1,5 @@
+import { createRoutesArray } from './api/api.js'
+
 export default {
   mode: 'universal',
   /*
@@ -31,6 +33,9 @@ export default {
       }
     ]
   },
+  generate: {
+    routes: createRoutesArray
+  },
   /*
    ** Customize the progress-bar color
    */
@@ -67,6 +72,6 @@ export default {
     /*
      ** You can extend webpack config here
      */
-    extend(config, ctx) {}
+    extend(config, ctx) { }
   }
 }