🖥️ Onlyoffice connector moved into the TwakeDrive repository (#366)

This commit is contained in:
Montassar Ghanmy
2024-02-27 10:35:01 +01:00
committed by GitHub
parent ff74104a1b
commit dcb6fa1c36
40 changed files with 1557 additions and 3 deletions
@@ -0,0 +1,16 @@
import { NextFunction, Request, Response } from 'express';
interface RequestQuery {
company_id: string;
token: string;
}
export default (req: Request<{}, {}, {}, RequestQuery>, res: Response, next: NextFunction) => {
const { company_id } = req.query;
if (!company_id) {
return res.status(400).json({ message: 'invalid request' });
}
next();
};