add get token, fix prompt
This commit is contained in:
9
server/routers/dry-wash/get-token.js
Normal file
9
server/routers/dry-wash/get-token.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const getGigaToken = async () => {
|
||||
const response = await fetch('https://admin.bro-js.ru/api/config/v1/dev')
|
||||
const data = await response.json()
|
||||
return data.features['dry-wash-bh'].GIGA_TOKEN.value
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getGigaToken
|
||||
}
|
||||
Reference in New Issue
Block a user