Adjust editor config (#976)

* Adjust editor config

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Tilman Vatteroth 2021-02-03 22:13:04 +01:00 committed by GitHub
parent 0180c75e55
commit e12dc523f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
301 changed files with 4393 additions and 3741 deletions

View file

@ -25,7 +25,7 @@ export interface Note {
export const getNote = async (noteId: string): Promise<Note> => {
// The "-get" suffix is necessary, because in our mock api (filesystem) the note id might already be a folder.
// TODO: [mrdrogdrog] replace -get with actual api route as soon as api backend is ready.
const response = await fetch(getApiUrl() + `/notes/${noteId}-get`, {
const response = await fetch(getApiUrl() + `/notes/${ noteId }-get`, {
...defaultFetchConfig
})
expectResponseCode(response)
@ -33,7 +33,7 @@ export const getNote = async (noteId: string): Promise<Note> => {
}
export const deleteNote = async (noteId: string): Promise<void> => {
const response = await fetch(getApiUrl() + `/notes/${noteId}`, {
const response = await fetch(getApiUrl() + `/notes/${ noteId }`, {
...defaultFetchConfig,
method: 'DELETE'
})