Overwrite existing api endpoints

This commit is contained in:
Sam Carlton 2022-04-26 16:42:48 -05:00
parent c5b7c81239
commit 5fe0b94123

View file

@ -222,12 +222,7 @@ class BuildLists {
const endpointPath = `./static/api${endpoint}.json`
const endpointDirectory = dirname(endpointPath)
// Stop if the endpoint is already exists
if (fs.existsSync(endpointPath)) {
console.log(`Path "${endpointPath}" already exists`)
return
}
// console.log(`Saving endpoint "${endpoint}" to "${endpointPath}"`)