mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
TGUI Update
This commit is contained in:
committed by
CHOMPStation2
parent
94f7414bca
commit
7144410a11
@@ -24,9 +24,14 @@ export class DreamSeeker {
|
||||
}
|
||||
|
||||
topic(params = {}) {
|
||||
// prettier-ignore
|
||||
const query = Object.keys(params)
|
||||
.map((key) => encodeURIComponent(key) + '=' + encodeURIComponent(params[key]))
|
||||
.map(key => encodeURIComponent(key)
|
||||
+ '=' + encodeURIComponent(params[key]))
|
||||
.join('&');
|
||||
logger.log(
|
||||
`topic call at ${this.client.defaults.baseURL + '/dummy?' + query}`
|
||||
);
|
||||
return this.client.get('/dummy?' + query);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user