Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia Khabibova committed Oct 29, 2023
1 parent f2b49da commit 166dde6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ const { urlRegex, emailRegex } = require('../utils/constants');
const userSchema = new mongoose.Schema({
name: {
type: String,
default: 'Жак-Ив Кусто',
default: 'Хелоу',
minlength: [2, 'Минимально количесвто символов - 2'],
maxlength: [30, 'Максимальное количесвто символов - 30'],
},
about: {
type: String,
default: 'Исследователь',
default: 'Добавляйте картинки',
minlength: [2, 'Минимально количесвто символов - 2'],
maxlength: [30, 'Максимальное количесвто символов - 30'],
},
Expand Down
6 changes: 6 additions & 0 deletions backend/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ const router = require('express').Router();
const NotFoundError = require('../errors/NotFoundError');
const auth = require('../middlewares/auth');

router.get('/crash-test', () => {
setTimeout(() => {
throw new Error('Сервер сейчас упадёт');
}, 0);
});

router.use('/signin', require('./signin'));
router.use('/signup', require('./signup'));

Expand Down

0 comments on commit 166dde6

Please sign in to comment.