Skip to content

Commit

Permalink
#25 - Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Frederik Pytlick <[email protected]>
  • Loading branch information
kristianbinau and frederikpyt committed Oct 16, 2023
1 parent fe04572 commit c9e561f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/items/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class DocsClass extends ItemClass {
}

static async create(name: string, text: string, parent: FolderType | null) {
const response = await fetchFromApi(api('docs'), {
const response = await fetchFromApi('docs', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand All @@ -39,7 +39,7 @@ export class DocsClass extends ItemClass {
}

async update(name: string, text: string) {
const response = await fetchFromApi(api('docs'), {
const response = await fetchFromApi('docs', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit c9e561f

Please sign in to comment.