1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Implement user API (create, update, remove, list)

This commit is contained in:
Chocobozzz 2016-08-04 22:32:36 +02:00
parent e4c556196d
commit 9bd2662976
16 changed files with 688 additions and 47 deletions

View file

@ -72,6 +72,11 @@ const THUMBNAILS_SIZE = '200x110'
// Path for access to thumbnails with express router
const THUMBNAILS_STATIC_PATH = '/static/thumbnails'
const USER_ROLES = {
ADMIN: 'admin',
USER: 'user'
}
// Special constants for a test instance
if (isTestInstance() === true) {
FRIEND_SCORE.BASE = 20
@ -96,7 +101,8 @@ module.exports = {
SEEDS_IN_PARALLEL: SEEDS_IN_PARALLEL,
SORTABLE_COLUMNS: SORTABLE_COLUMNS,
THUMBNAILS_SIZE: THUMBNAILS_SIZE,
THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH
THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH,
USER_ROLES: USER_ROLES
}
// ---------------------------------------------------------------------------