mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add eleventy endpoints filter
This commit is contained in:
parent
789b526526
commit
9e7e24c681
1 changed files with 8 additions and 0 deletions
|
|
@ -313,6 +313,14 @@ class BuildLists {
|
|||
// // Save Eleventy Endpoints
|
||||
// await this.saveToJson(Array.from(this.endpointMaps.eleventy), './static/eleventy-endpoints.json')
|
||||
|
||||
// console.log('this.endpointMaps.eleventy /app/chrome', this.endpointMaps.eleventy.get( '/app/chrome' ))
|
||||
|
||||
|
||||
// Filter eleventy endpoints
|
||||
// this.endpointMaps.eleventy = new Set([
|
||||
// ['/app/chrome', this.endpointMaps.eleventy.get( '/app/chrome' )]
|
||||
// ])
|
||||
|
||||
for ( const [ endpointSetName, endpointSet ] of Object.entries(this.endpointMaps) ) {
|
||||
// Save Endpoints
|
||||
await this.saveToJson(Array.from( endpointSet , ([route, payload]) => ({ route, payload })), `./static/${endpointSetName}-endpoints.json`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue