Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
apps.education
apps.education-front
Commits
ecbe3563
Commit
ecbe3563
authored
Mar 12, 2021
by
Mahëd Benzerga
Browse files
Ajout des pages plateformes académique lors de la génération statique
parent
b463b46b
Changes
1
Hide whitespace changes
Inline
Side-by-side
nuxt.config.js
View file @
ecbe3563
...
...
@@ -105,8 +105,15 @@ export default {
generate
:
{
dir
:
'
public
'
,
async
routes
()
{
let
routes
=
[];
const
applications
=
await
Api
.
findAllApplications
();
return
applications
.
map
((
application
)
=>
'
/applications/
'
+
application
.
id
);
routes
=
routes
.
concat
(
applications
.
map
((
application
)
=>
'
/applications/
'
+
application
.
id
));
const
academies
=
await
Api
.
findAllAcademies
();
routes
=
routes
.
concat
(
academies
.
map
((
academie
)
=>
'
/plateforme/
'
+
academie
.
id
));
return
routes
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment