Ran linter
This commit is contained in:
parent
13d0d08183
commit
1f52afdfe2
4 changed files with 25 additions and 26 deletions
|
|
@ -1,15 +1,15 @@
|
|||
const API_PREFIX = "/api/v1"
|
||||
const API_PREFIX = '/api/v1'
|
||||
|
||||
export class RbApi {
|
||||
async get_json(path) {
|
||||
async get_json (path) {
|
||||
const url = `${API_PREFIX}${path}`
|
||||
let res = await fetch(url)
|
||||
const res = await fetch(url)
|
||||
return await res.json()
|
||||
}
|
||||
|
||||
async sections() {
|
||||
let res = await this.get_json("/sections")
|
||||
async sections () {
|
||||
const res = await this.get_json('/sections')
|
||||
|
||||
return res["sections"]
|
||||
return res.sections
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue