Skip to content

Commit

Permalink
Merge pull request #38 from tanish35/master
Browse files Browse the repository at this point in the history
Minor change
  • Loading branch information
tanish35 authored Aug 2, 2024
2 parents e76276e + 73e8880 commit 973a8bb
Show file tree
Hide file tree
Showing 6 changed files with 3,049 additions and 69 deletions.
5 changes: 2 additions & 3 deletions backend/dist/middleware/moderation.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkModeration = exports.checkModerationForString = void 0;
exports.checkModerationForString = checkModerationForString;
exports.checkModeration = checkModeration;
const promises_1 = __importDefault(require("fs/promises"));
function binarySearch(items, value) {
var startIndex = 0, stopIndex = items.length - 1, middle = Math.floor((stopIndex + startIndex) / 2);
Expand Down Expand Up @@ -51,7 +52,6 @@ function checkModerationForString(content) {
}
});
}
exports.checkModerationForString = checkModerationForString;
function checkModeration(req, res, next) {
const fs = require("fs");
//for some reason it is taking backend folder as the root folder
Expand Down Expand Up @@ -79,4 +79,3 @@ function checkModeration(req, res, next) {
}
});
}
exports.checkModeration = checkModeration;
1 change: 1 addition & 0 deletions backend/dist/routes/userRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ router.route("/register").post(userControllers_1.registerUser);
router.route("/login").post(userControllers_1.loginUser);
router.route("/verify/:token").get(userControllers_1.verifyUser);
router.get("/me", checkAuth_1.default, userControllers_1.getCurrentUserDetails); // get the user details of the current user
router.get("/get/:userId", checkAuth_1.default, userControllers_1.getUserDetailsById); // get the user details of a specific user
exports.default = router;
Loading

0 comments on commit 973a8bb

Please sign in to comment.