strapi-plugin-passwordless
Version:
A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.
16 lines (12 loc) • 371 B
JavaScript
import {
request,
} from '@strapi/helper-plugin';
import {getRequestURL} from '../../../utils';
const fetchData = async () => {
const {settings} = await request(getRequestURL('settings'), {method: 'GET'});
return settings;
};
const saveSettings = body => {
return request(getRequestURL('settings'), {method: 'PUT', body});
};
export {fetchData, saveSettings};