ai / api /server /routes /prompts.js
Marco Beretta
LibreChat upload repo
3b6afc0
raw
history blame
364 Bytes
const express = require('express');
const router = express.Router();
const { getPrompts } = require('../../models/Prompt');
router.get('/', async (req, res) => {
let filter = {};
// const { search } = req.body.arg;
// if (!!search) {
// filter = { conversationId };
// }
res.status(200).send(await getPrompts(filter));
});
module.exports = router;