Ran linter

This commit is contained in:
Jef Roosens 2021-12-29 19:44:08 +01:00
parent 13d0d08183
commit 1f52afdfe2
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
4 changed files with 25 additions and 26 deletions

View file

@ -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
}
}