mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
List all endpoints
This commit is contained in:
parent
74d2ae26b0
commit
1a1d80fb77
1 changed files with 10 additions and 10 deletions
|
|
@ -43,23 +43,23 @@ export async function getStaticProps({ params }) {
|
|||
|
||||
// console.log('endpointListings', endpointListings[0])
|
||||
|
||||
let pageListing = allEndpointListings[0]
|
||||
let pageListing = { allEndpointListings }
|
||||
|
||||
const start = '/formula/'
|
||||
|
||||
for ( const listing of allEndpointListings ) {
|
||||
// if ( listing.route.includes( '/ack' ) ) {
|
||||
// console.log('listing', listing)
|
||||
// }
|
||||
// for ( const listing of allEndpointListings ) {
|
||||
// // if ( listing.route.includes( '/ack' ) ) {
|
||||
// // console.log('listing', listing)
|
||||
// // }
|
||||
|
||||
if ( !listing.route.startsWith( start ) ) continue
|
||||
// if ( !listing.route.startsWith( start ) ) continue
|
||||
|
||||
if ( !listing.route.includes( slug ) ) continue
|
||||
// if ( !listing.route.includes( slug ) ) continue
|
||||
|
||||
pageListing = listing
|
||||
// pageListing = listing
|
||||
|
||||
break
|
||||
}
|
||||
// break
|
||||
// }
|
||||
|
||||
console.log('pageListing', pageListing)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue