Rework how the linting is done
This commit is contained in:
parent
51091d6d59
commit
96911a8d95
30 changed files with 111 additions and 108 deletions
|
@ -1,5 +1,5 @@
|
|||
export async function api<T>(url: string, restful_token?: string): Promise<T> {
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
return (restful_token ? fetch(url, {headers: {"Authorization": `Bearer ${restful_token}`}}) : fetch(url))
|
||||
.then(async response => {
|
||||
if (!response.ok) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue