You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/oaer/lib/api/nats.ts

21 lines
381 B
TypeScript

/*
* nats.ts
* Copyright (C) 2023 veypi <i@veypi.com>
* 2023-10-19 21:36
* Distributed under terms of the MIT license.
*/
import cfg from '../cfg'
import ajax from './axios'
export default {
local: () => cfg.BaseUrl() + '/nats/',
general() {
return ajax.get(this.local() + 'varz')
},
conns() {
return ajax.get(this.local() + 'connz', { subs: true })
},
}