delete note do be working

This commit is contained in:
dhain 2022-10-04 10:51:59 +02:00
parent b49a4c3ddf
commit 2eeda6fc5c
4 changed files with 18 additions and 23 deletions

View file

@ -1,4 +1,4 @@
import type {Note} from "../types";
import type {Note} from "./types";
export interface NoteRepository {
getNotes(): Promise<Note[]>;

View file

@ -1,4 +1,4 @@
import type {Note} from "../types";
import type {Note} from "./types";
import {parseCookies} from "nookies";
import type {NoteRepository} from "./NoteRepository";
@ -53,7 +53,7 @@ export class StrapiNoteRepository implements NoteRepository {
let requestInit: RequestInit = {
method: method,
headers: {
authorization: StrapiNoteRepository.mockedGetAuthorizationHeader()
authorization: StrapiNoteRepository.getAuthorizationHeader()
}
};
if (body) {

View file

@ -1,9 +1,5 @@
export interface Note {
id: number;
attributes: Attribute;
}
export interface Attribute {
title: string;
content: string;