<commit_before>//@flow

import type {
    ControllerParams,
    ControllerDependenciesDefinition,
    ControllerActionReturn,
    ControllerRouteAclTable,
    EventId,
    EventPackage
} from 'paperframe';

const PaperworkController = require('../../../Library/PaperworkController');
const PaperworkStatusCodes = require('../../../Library/PaperworkStatusCodes');

const HttpStatus = require('http-status-codes');

module.exports = class UserController extends PaperworkController {
    static get dependencies(): ControllerDependenciesDefinition {
        return ['database'];
    }

    static get resource(): string {
        return 'user';
    }

    static get route(): string {
        return '/users';
    }

    get routeAcl(): ControllerRouteAclTable {
        let acl: ControllerRouteAclTable = {
            'index': {
                'protected': true
            },
            'show': {
                'protected': true
            }
        };

        return acl;
    }

    get eventListener(): string {
        return '**';
    }<commit_msg>Removed routeAcl, as Kong is in charge now<commit_after>//@flow

import type {
    ControllerParams,
    ControllerDependenciesDefinition,
    ControllerActionReturn,
    ControllerRouteAclTable,
    EventId,
    EventPackage
} from 'paperframe';

const PaperworkController = require('../../../Library/PaperworkController');
const PaperworkStatusCodes = require('../../../Library/PaperworkStatusCodes');

const HttpStatus = require('http-status-codes');

module.exports = class UserController extends PaperworkController {
    static get dependencies(): ControllerDependenciesDefinition {
        return ['database'];
    }

    static get resource(): string {
        return 'user';
    }

    static get route(): string {
        return '/users';
    }

    get eventListener(): string {
        return '**';
    }
{'fraction_non_alphanumeric': 0.11786666666666666, 'fraction_numerical': 0.0, 'mean_word_length': 2.671232876712329, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3107653', 'n_tokens_mistral': 478, 'n_tokens_neox': 462, 'n_words': 115}