Skip to content

Commit 03f5613

Browse files
CHanges 3
1 parent 616cda7 commit 03f5613

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/routes/EditorRouter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
const { ReadfileContents, SaveCurrentFile, CreateNewFile, CreateNewFolder, DeleteController, RenameController } = require("../controllers/EditorController");
22

33
const EditorRouter = require("express").Router();
4-
const path = require('path')
4+
const fs = require('fs').promises;
5+
const path = require('path');
56

67
EditorRouter.get('/:filePath/:clerkID', ReadfileContents);
78
EditorRouter.post('/save-file', SaveCurrentFile)

0 commit comments

Comments
 (0)