mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-04 09:38:50 +01:00
convo fetching in increments of 12
This commit is contained in:
parent
80319c7fcc
commit
a98367d27f
6 changed files with 70 additions and 16 deletions
|
|
@ -3,7 +3,8 @@ const router = express.Router();
|
|||
const { getConvos, deleteConvos, updateConvo } = require('../../models/Conversation');
|
||||
|
||||
router.get('/', async (req, res) => {
|
||||
res.status(200).send(await getConvos());
|
||||
const pageNumber = req.query.pageNumber || 1;
|
||||
res.status(200).send(await getConvos(pageNumber));
|
||||
});
|
||||
|
||||
router.post('/clear', async (req, res) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue