mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Overwrite existing api endpoints
This commit is contained in:
parent
c5b7c81239
commit
5fe0b94123
1 changed files with 1 additions and 6 deletions
|
|
@ -222,12 +222,7 @@ class BuildLists {
|
||||||
const endpointPath = `./static/api${endpoint}.json`
|
const endpointPath = `./static/api${endpoint}.json`
|
||||||
const endpointDirectory = dirname(endpointPath)
|
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}"`)
|
// console.log(`Saving endpoint "${endpoint}" to "${endpointPath}"`)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue