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.
 

10 lines
388 B

/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/* eslint-disable import/prefer-default-export */
import { Request, Response } from 'express';
import { getPrivateMessageList } from './private-message.model';
export const getPrivateMessages = async (req: Request, res: Response) => {
return res.json({
privateMessages: await getPrivateMessageList(),
});
};