Commit ecbe3563 authored by Mahëd Benzerga's avatar Mahëd Benzerga
Browse files

Ajout des pages plateformes académique lors de la génération statique

parent b463b46b
......@@ -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;
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment