text: const dashboard = require('@userdashboard/dashboard')
  
  module.exports = {
    get: async (req) => {
      if (!req.applicationServer) {
        throw new Error('invalid-access')
      }
      if (!req.query || !req.query.accountid) {
        throw new Error('invalid-accountid')
      }
      if (req.query.accountid !== req.account.accountid) {
        throw new Error('invalid-account')
      }
      return dashboard.StorageList.count(`${global.appid}/account/allCredits/${req.query.accountid}`)
    }
  }
  