Minor Fix
This commit is contained in:
1 parent
cd8e625acc
commit
42e29e719c
1 file changed
+3
-3
+3
-3
@@ -224,7 +224,7 @@ router.post('/addXP', (req, res, next) => {
|
|||||||
// Edit
|
// Edit
|
||||||
router.post('/edit', upload.single('image'), (req, res, next) => {
|
router.post('/edit', upload.single('image'), (req, res, next) => {
|
||||||
// Passes image path to defaultImage Model
|
// Passes image path to defaultImage Model
|
||||||
imagePath = __dirname + '/uploads/default-image';
|
let imagePath = __dirname + '/uploads/default-image';
|
||||||
module.exports = {
|
module.exports = {
|
||||||
defaultPath: imagePath
|
defaultPath: imagePath
|
||||||
}
|
}
|
||||||
@@ -426,7 +426,7 @@ router.post('/edit', upload.single('image'), (req, res, next) => {
|
|||||||
// Register Teacher
|
// Register Teacher
|
||||||
router.post('/registerTeacher', upload.single('image'), (req, res, next) => {
|
router.post('/registerTeacher', upload.single('image'), (req, res, next) => {
|
||||||
// Passes image path to defaultImage Model
|
// Passes image path to defaultImage Model
|
||||||
imagePath = __dirname + '/uploads/default-image';
|
let imagePath = __dirname + '/uploads/default-image';
|
||||||
module.exports = {
|
module.exports = {
|
||||||
defaultPath: imagePath
|
defaultPath: imagePath
|
||||||
}
|
}
|
||||||
@@ -565,7 +565,7 @@ router.post('/registerTeacher', upload.single('image'), (req, res, next) => {
|
|||||||
// Register
|
// Register
|
||||||
router.post('/register', upload.single('image'), (req, res, next) => {
|
router.post('/register', upload.single('image'), (req, res, next) => {
|
||||||
// Passes image path to defaultImage Model
|
// Passes image path to defaultImage Model
|
||||||
imagePath = __dirname + '/uploads/default-image';
|
let imagePath = __dirname + '/uploads/default-image';
|
||||||
module.exports = {
|
module.exports = {
|
||||||
defaultPath: imagePath
|
defaultPath: imagePath
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user