From 308d07785f811ff470d0e90b11680926a823027b Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sun, 29 May 2022 17:45:54 +0100 Subject: add change password option --- apps/Settings/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/Settings/api.js') diff --git a/apps/Settings/api.js b/apps/Settings/api.js index f538368..142afc1 100644 --- a/apps/Settings/api.js +++ b/apps/Settings/api.js @@ -1,9 +1,9 @@ import fetchJson from 'helpers/fetchJson' -export const saveSettings = async (data) => { +export const saveSettings = async (data) => ( fetchJson('/api/settings', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) -} +) -- cgit v1.2.3