update user, auth, token, roles, done
This commit is contained in:
@ -17,7 +17,7 @@ export class ReturnHelper {
|
||||
});
|
||||
};
|
||||
|
||||
static successResponseList(
|
||||
static successResponselist(
|
||||
res: Response,
|
||||
status_code: number,
|
||||
message: string,
|
||||
|
||||
@ -6,7 +6,7 @@ import swaggerDocument from '../../swagger/swagger.json';
|
||||
export class SwaggerHelper {
|
||||
static setup(app: express.Application) {
|
||||
var options = {
|
||||
explorer: false
|
||||
explorer: false,
|
||||
};
|
||||
|
||||
app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument, options));
|
||||
|
||||
7
src/helpers/express/trust_proxy.ts
Normal file
7
src/helpers/express/trust_proxy.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import express from 'express';
|
||||
|
||||
export class TrustProxyHelper {
|
||||
static setup(app: express.Application) {
|
||||
app.set('trust proxy', true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user