<commit_before>/*******************************************************************************
 * Name: QuizziPedia::Back-End::App::Routers::UserRouter;
 * Description: classe che gestisce le richieste relative alla registrazione,
 * alla gestione della sessione e alla cronologia dei questionari svolti da un
 * utente. Componente ConcreteHandler del design pattern Chain of
 * responsibility. Utilizza il modulo Passport;
 * Relations with other classes:
 * + IN	Server;
 * + OUT ErrorHandler;
 * + OUT NotFoundHandler;
 * + OUT UserController;
 * + OUT SummaryController.
 * Creation data: 27-04-2016;
 * Author: <NAME>.
 ********************************************************************************
 * Updates history
 *-------------------------------------------------------------------------------
 * ID: UserRouter_20160427;
 * Update data: 27-04-2016;
 * Description: Creata classe e inseriti tutti metodi;
 * Autore: <NAME>.
 *-------------------------------------------------------------------------------
 *******************************************************************************/

var user = require('../Controller/UserController');

module.exports = function(app){

    app.route('/api/:lang/signup')
       .post(user.auth.signup);

    app.route('/api/:lang/signin')
        .post(user.auth.signin);

    app.route('/api/:lang/signout')
        .post(user.auth.signout);
/*
    app.route('/:lang/recovery')
        .post(user.recovery);*/

    app.route('/api/:lang/loggedin')
        .get(user.session.loggedin);

    app.route('/api/:lang/user/:userId')
        .get(user.userManagement.getInfo)

    app.route('/api/:lang/user')
        .delete(user.userManagement.deleteUser)

    app.route('/api/:lang/user/statistics')
        .put(user.updateStatisticUser);

};<commit_msg>Corretto errore nel routing del be<commit_after>/*******************************************************************************
 * Name: QuizziPedia::Back-End::App::Routers::UserRouter;
 * Description: classe che gestisce le richieste relative alla registrazione,
 * alla gestione della sessione e alla cronologia dei questionari svolti da un
 * utente. Componente ConcreteHandler del design pattern Chain of
 * responsibility. Utilizza il modulo Passport;
 * Relations with other classes:
 * + IN	Server;
 * + OUT ErrorHandler;
 * + OUT NotFoundHandler;
 * + OUT UserController;
 * + OUT SummaryController.
 * Creation data: 27-04-2016;
 * Author: <NAME>.
 ********************************************************************************
 * Updates history
 *-------------------------------------------------------------------------------
 * ID: UserRouter_20160427;
 * Update data: 27-04-2016;
 * Description: Creata classe e inseriti tutti metodi;
 * Autore: <NAME>.
 *-------------------------------------------------------------------------------
 *******************************************************************************/

var user = require('../Controller/UserController');

module.exports = function(app){

    app.route('/api/:lang/signup')
       .post(user.auth.signup);

    app.route('/api/:lang/signin')
        .post(user.auth.signin);

    app.route('/api/:lang/signout')
        .post(user.auth.signout);
/*
    app.route('/:lang/recovery')
        .post(user.recovery);*/

    app.route('/api/:lang/loggedin')
        .get(user.session.loggedin);

    app.route('/api/:lang/user/:userId')
        .get(user.userManagement.getInfo);

    app.route('/api/:lang/user')
        .delete(user.userManagement.deleteUser);

    app.route('/api/:lang/user/statistics')
        .put(user.userManagement.updateStatisticUser);

};
{'fraction_non_alphanumeric': 0.33360745614035087, 'fraction_numerical': 0.013157894736842105, 'mean_word_length': 2.757981462409887, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6624787', 'n_tokens_mistral': 1002, 'n_tokens_neox': 946, 'n_words': 191}