* @param {string} contentType
* @param {object} ctx
*/
- parseBody(contentType, ctx) {
+ parseBody(contentType, ctx, rawBody) {
// eslint-disable-next-line sonarjs/no-small-switch
switch (contentType) {
// Handle any additional content types here
default:
- super.parseBody(contentType, ctx);
+ super.parseBody(contentType, ctx, rawBody);
}
}
*/
async handlerPostRoot(req, res, ctx) {
const _scope = _fileScope('handlerPostRoot');
- this.logger.debug(_scope, 'called', { req: common.requestLogData(req), ctx });
+ this.logger.debug(_scope, 'called', { req, ctx });
this.setResponseType(this.responseTypes, req, res, ctx);
- await this.ingestBody(req, res, ctx);
+ await this.ingestBody(req, res, ctx, {
+ maximumBodySize: 1024 * 8,
+ });
await this._postRootAuth(req, res, ctx);
await this.manager.postRoot(res, ctx);
const responseTypes = [
Enum.ContentType.TextHTML,
];
- this.logger.debug(_scope, 'called', { req: common.requestLogData(req), ctx });
+ this.logger.debug(_scope, 'called', { req, ctx });
Dingus.setHeadHandler(req, res, ctx);
*/
async handlerGetId(req, res, ctx) {
const _scope = _fileScope('handlerGetId');
- this.logger.debug(_scope, 'called', { req: common.requestLogData(req), ctx });
+ this.logger.debug(_scope, 'called', { req, ctx });
Dingus.setHeadHandler(req, res, ctx);
*/
async handlerDeleteId(req, res, ctx) {
const _scope = _fileScope('handlerDeleteId');
- this.logger.debug(_scope, 'called', { req: common.requestLogData(req), ctx });
+ this.logger.debug(_scope, 'called', { req, ctx });
this.setResponseType(this.responseTypes, req, res, ctx);
await this.authenticator.required(req, res, ctx);
*/
async handlerPutId(req, res, ctx) {
const _scope = _fileScope('handlerPutId');
- this.logger.debug(_scope, 'called', { req: common.requestLogData(req), ctx });
+ this.logger.debug(_scope, 'called', { req, ctx });
this.setResponseType(this.responseTypes, req, res, ctx);
await this.ingestBody(req, res, ctx);
*/
async handlerGetIdInfo(req, res, ctx) {
const _scope = _fileScope('handlerGetIdInfo');
- this.logger.debug(_scope, 'called', { req: common.requestLogData(req), ctx });
+ this.logger.debug(_scope, 'called', { req, ctx });
Dingus.setHeadHandler(req, res, ctx);
*/
async handlerGetStatic(req, res, ctx) {
const _scope = _fileScope('handlerGetStatic');
- this.logger.debug(_scope, 'called', { req: common.requestLogData(req), ctx });
+ this.logger.debug(_scope, 'called', { req, ctx });
Dingus.setHeadHandler(req, res, ctx);
*/
async handlerGetAdminReport(req, res, ctx) {
const _scope = _fileScope('handlerAdminReport');
- this.logger.debug(_scope, 'called', { req: common.requestLogData(req), ctx });
+ this.logger.debug(_scope, 'called', { req, ctx });
Dingus.setHeadHandler(req, res, ctx);