strapi-supergpt
Version:
A plugin that gives you the ability to integrate ChatGPT into strapi
47 lines (45 loc) • 817 B
JavaScript
"use strict";
module.exports = {
routes: [
{
method: "GET",
path: "/convo/:id",
handler: "convoController.readConvo",
config: {
policies: [],
},
},
{
method: "GET",
path: "/convos",
handler: "convoController.readConvoNames",
config: {
policies: [],
},
},
{
method: "POST",
path: "/convo",
handler: "convoController.createConvo",
config: {
policies: [],
},
},
{
method: "PUT",
path: "/convo/:id",
handler: "convoController.updateConvo",
config: {
policies: [],
},
},
{
method: "DELETE",
path: "/convo/:id",
handler: "convoController.deleteConvo",
config: {
policies: [],
},
},
],
};