Skip to content

Commit

Permalink
removed build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
OddyHater committed Sep 10, 2023
1 parent 882f4aa commit 4d2ba7d
Show file tree
Hide file tree
Showing 26 changed files with 4 additions and 155 deletions.
8 changes: 4 additions & 4 deletions backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const { loginValidation, createUserValidation } = require('./middlewares/validat

const { requestLogger, errorLogger } = require('./middlewares/loggers');

const NotFoundError = require('./errors/not-found-err');

const userRoutes = require('./routes/users');
const cardRouter = require('./routes/cards');

Expand All @@ -27,10 +29,8 @@ mongoose.connect('mongodb://127.0.0.1:27017/mestodb', {
app.use(express.json());
app.use(requestLogger);

app.use('/404', (req, res, next) => {
res.status(404).send({ message: 'Страница не найдена' });

next();
app.use('*', (req, res, next) => {
next(new NotFoundError('Страница не найдена'));
});

app.post('/signin', loginValidation, login);
Expand Down
19 changes: 0 additions & 19 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
"bcrypt": "^5.1.1",
"celebrate": "^15.0.1",
"cors": "^2.8.5",
"crypto": "^1.0.1",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"express-winston": "^4.2.0",
"jsonwebtoken": "^9.0.2",
Expand Down
29 changes: 0 additions & 29 deletions frontend/build/asset-manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion frontend/build/index.html

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/build/static/css/main.a691e8d2.css

This file was deleted.

1 change: 0 additions & 1 deletion frontend/build/static/css/main.a691e8d2.css.map

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/build/static/js/main.2f3c9ca9.js

This file was deleted.

Loading

0 comments on commit 4d2ba7d

Please sign in to comment.