Skip to content

Commit b667186

Browse files
committed
fix lint errors on javascript backend
1 parent 152f71e commit b667186

File tree

8 files changed

+13
-61
lines changed

8 files changed

+13
-61
lines changed

backend-javascript/.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ APP_VERSION=1.1.1
55

66
# === SERVEUR APPLICATION ===
77
HOST=localhost
8-
PORT=3000
8+
PORT=3001
99
# CORS_ORIGIN=http://localhost:4200
1010
CORS_ORIGIN=*
1111

backend-javascript/app.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

backend-javascript/src/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import express from 'express';
22
import compression from 'compression';
3-
import cors from 'cors';
43

54
import appConfig from './config/app.config.js';
65

backend-javascript/src/middlewares/security/security.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import appConfig from '../../config/app.config.js';
55

66
export default function configureSecurity(app) {
77
app.use(cors({ origin: appConfig.security.corsOrigin }));
8-
// app.use(cors({ origin: '*' }));
98
app.use(helmet(appConfig.security.helmet));
109

1110
const limiter = rateLimit({

backend-javascript/src/modules/city/city.controller.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Controller {
2323

2424
return next(error);
2525
}
26-
}
26+
};
2727

2828
getItemById = async (req, res, next) => {
2929
try {
@@ -47,7 +47,7 @@ class Controller {
4747

4848
return next(error);
4949
}
50-
}
50+
};
5151

5252
createItem = async (req, res, next) => {
5353
try {
@@ -66,7 +66,7 @@ class Controller {
6666

6767
return next(error);
6868
}
69-
}
69+
};
7070

7171
updateItem = async (req, res, next) => {
7272
try {
@@ -85,7 +85,7 @@ class Controller {
8585

8686
return next(error);
8787
}
88-
}
88+
};
8989

9090
deleteItem = async (req, res, next) => {
9191
try {
@@ -100,7 +100,8 @@ class Controller {
100100

101101
return next(error);
102102
}
103-
}
103+
};
104+
104105
}
105106

106107
export default Controller;

backend-typescript/.env.development

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ APP_VERSION=1.1.1
55

66
# === SERVEUR APPLICATION ===
77
HOST=localhost
8-
PORT=3001
9-
CORS_ORIGIN=http://localhost:3001
8+
PORT=3000
9+
# CORS_ORIGIN=http://localhost:4200
10+
CORS_ORIGIN=*
1011

1112
# === BASE DE DONNEES ===
1213
DB_CLIENT=mock # pg | mysql | mock

backend-typescript/.env.production

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ APP_VERSION=1.1.1
66
# === SERVEUR APPLICATION ===
77
HOST=localhost
88
PORT=8080
9-
CORS_ORIGIN=https://www.mon-domaine-en-prod.com
9+
# CORS_ORIGIN=https://www.mon-domaine-en-prod.com
10+
CORS_ORIGIN=*
1011

1112
# === BASE DE DONNEES ===
1213
DB_CLIENT=mock # pg | mysql | mock

frontend-angular/src/environments/environment.development.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export const environment = {
88
},
99
urlNews: './assets/params/json/mock/trailers.json',
1010
urlMovies: './assets/params/json/mock/movies.json',
11-
useMock: true,
11+
useMock: false,
1212
backend: 'http://localhost:3000',
1313
};

0 commit comments

Comments
 (0)