Add user management endpoints

This commit is contained in:
Cohee
2024-04-07 17:44:40 +03:00
parent b07aef02c7
commit c6ffe4502a
7 changed files with 346 additions and 73 deletions

View File

@ -5,6 +5,8 @@ const PUBLIC_DIRECTORIES = {
extensions: 'public/scripts/extensions',
};
const DEFAULT_AVATAR = '/img/ai4.png';
/**
* @type {import('./users').UserDirectoryList}
* @readonly
@ -52,6 +54,7 @@ const DEFAULT_USER = Object.freeze({
password: '',
admin: true,
enabled: true,
salt: '',
});
const UNSAFE_EXTENSIONS = [
@ -296,6 +299,7 @@ const OPENROUTER_KEYS = [
module.exports = {
DEFAULT_USER,
DEFAULT_AVATAR,
PUBLIC_DIRECTORIES,
USER_DIRECTORY_TEMPLATE,
UNSAFE_EXTENSIONS,