update: anonymous_token 动态生成

This commit is contained in:
binaryify 2023-08-21 21:34:41 +08:00
parent e528f93ef7
commit c2621a5870
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -5,4 +5,5 @@ node_modules
.vscode .vscode
.history .history
examples/moddef.json examples/moddef.json
bin bin
util/config.json

2
app.js
View File

@ -1,5 +1,7 @@
#!/usr/bin/env node #!/usr/bin/env node
const generateConfig = require('./generateConfig')
async function start() { async function start() {
await generateConfig()
require('./server').serveNcmApi({ require('./server').serveNcmApi({
checkVersion: true, checkVersion: true,
}) })