This commit is contained in:
Ritesh Kumar committed 2020-01-12 00:03:32 +05:30
1 parent 3a164922ff
commit ce66b54644
1 file changed
+2
+2
View File
@@ -29,6 +29,8 @@ export default (req: NextApiRequest, res: NextApiResponse) => {
createFormatter(config)
);
const schema = generator.createSchema("*");
fs.unlink(filePath, () => {});
res.status(200).send(schema);
} catch (e) {
res.status(500).send(e.message);