You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
314 B

import {Strapi} from '@strapi/strapi';
export default ({strapi}: { strapi: Strapi }) => ({
getWelcomeMessage() {
return 'Welcome to Strapi 🚀';
},
async get(roleName: string) {
return await strapi.query('api::vendor.vendor').findOne({
where: {
slug: roleName
}
});
}
});