2020-08-07 12:23:59 +02:00
|
|
|
module.exports =
|
|
|
|
{
|
|
|
|
// API'routes (after "apiUrl" defined in instance.js)
|
|
|
|
userRoutes: "/user",
|
2020-09-24 17:09:17 +02:00
|
|
|
checkDeleteLinkRoute: "/confirmdelete/",
|
2020-08-07 12:23:59 +02:00
|
|
|
checkIfIsEmailfreeRoute: "/isemailfree",
|
|
|
|
checkLoginRoute: "/checklogin/",
|
2020-09-24 17:09:17 +02:00
|
|
|
checkNewLoginLinkRoute: "/confirmnewlogin/",
|
|
|
|
checkSubscribeTokenRoute: "/validation/",
|
2020-08-07 12:23:59 +02:00
|
|
|
connectionRoute: "/login",
|
|
|
|
connectionWithLinkRoute: "/checkloginlink",
|
|
|
|
createUserRoute: "/create",
|
2020-09-24 17:09:17 +02:00
|
|
|
getAdminStats: "/getadminstats/",
|
|
|
|
getGodChilds: "/getgodchilds/",
|
|
|
|
getGodfatherRoute: "/getgodfatherid",
|
|
|
|
getLoginLinkRoute: "/getloginlink",
|
2020-08-07 12:23:59 +02:00
|
|
|
getPayments: "/payment/getforoneuser/",
|
2020-09-24 17:09:17 +02:00
|
|
|
getUserInfos: "/get/",
|
2020-10-27 16:08:48 +01:00
|
|
|
getUsersQuestionnairesRoute: "/getusersquestionnaires/",// les questionnaires auxquels l'utilisateur a déjà eu accès via son abonnement
|
2020-10-21 13:08:56 +02:00
|
|
|
searchUserRoute: "/search/",
|
|
|
|
signupCompletionRoute: "/signupcompletion/",
|
2020-09-24 17:09:17 +02:00
|
|
|
subscribeRoute: "/signup",
|
2020-08-07 12:23:59 +02:00
|
|
|
unsubscribeRoute: "/subscription/stop/",
|
2020-09-24 17:09:17 +02:00
|
|
|
updateUserInfos: "/modify/",
|
|
|
|
validateUserRoute: "/validate/",
|
2020-08-07 12:23:59 +02:00
|
|
|
// forms : à compléter avec valeurs par défaut, etc. cf modèle
|
|
|
|
name: { maxlength: 70, required: true },
|
|
|
|
email: { maxlength: 255, required: true },
|
|
|
|
password: { minlength: 8, maxlength:72, required: true }, // https://www.npmjs.com/package/bcrypt#security-issues-and-concerns
|
|
|
|
newPassword: { minlength: 8, maxlength:72 },
|
|
|
|
codeGodfather: { maxlength: 255 },
|
|
|
|
cguOk: { value: "true", required: true },
|
2020-10-06 11:38:07 +02:00
|
|
|
search: { minlength: 1, required: true },
|
2020-08-07 12:23:59 +02:00
|
|
|
timeDifferenceMin: -720,
|
2020-10-21 13:08:56 +02:00
|
|
|
timeDifferenceMax: 840,
|
2020-08-07 12:23:59 +02:00
|
|
|
// JSON dir
|
|
|
|
dirCacheUsers : "datas/users",
|
2020-09-22 17:54:23 +02:00
|
|
|
dirCacheUsersAnswers : "datas/users/questionnaires/answers",
|
|
|
|
dirCacheUsersWithoutAnswers : "datas/users/questionnaires/without"
|
2020-08-07 12:23:59 +02:00
|
|
|
};
|