@thirdrocktechno/strapi-gpt
Version:
A StrapiGPT plugin for integrating AI-powered custom ChatBot with your strapi content.
45 lines (44 loc) • 928 B
JavaScript
module.exports = {
// accessible only from admin UI
type: 'admin',
routes: [
{
method: 'GET',
path: '/component',
handler: 'strapi-gpt.findChatGPTComponent',
config: {
policies: [],
},
},
{
method: 'POST',
path: '/component',
handler: 'strapi-gpt.createChatGPTComponent',
config: {
policies: [],
},
},
{
method: 'GET',
path: '/content-types',
handler: 'strapi-gpt.findContentTypes',
config: {
policies: [],
},
},
{
method: 'POST',
path: '/refresh-data',
handler: 'strapi-gpt.refreshData',
config: { policies: [] },
},
{
method: 'POST',
path: '/query',
handler: 'strapi-gpt.query',
config: {
auth: false,
},
},
],
};