I hereby claim:
- I am tejasrr19 on github.
- I am tejasrr19 (https://keybase.io/tejasrr19) on keybase.
- I have a public key ASBoFMzobbVr7wEzAZiqsdWTfPBGCWVeciobVitwArRmMgo
To claim this, I am signing this object:
## What does this PR do? | |
## Where should the reviewer start? | |
## How should this be manually tested? | |
## Any background context you want to provide? | |
## What are the relevant tickets? |
I hereby claim:
To claim this, I am signing this object:
const allRoutes = ((routeDir, routes) => { | |
const routeFiles = fs.readdirSync(routeDir); | |
routes = routes || []; | |
routeFiles.forEach((file) => { | |
if(fs.statSync(routeDir + file).isDirectory()) { | |
routes = allRoutes(routeDir + file + '/', routes); | |
} else { | |
routes.push(file); | |
} | |
}); |