Extract sprite and custom content endpoints to a separate files. Update constants references

This commit is contained in:
Cohee
2023-09-16 17:28:28 +03:00
parent d185e143a8
commit 38b63b07f5
9 changed files with 485 additions and 440 deletions

View File

@ -1,4 +1,4 @@
const directories = {
const DIRECTORIES = {
worlds: 'public/worlds/',
avatars: 'public/User Avatars',
images: 'public/img/',
@ -102,7 +102,10 @@ const UNSAFE_EXTENSIONS = [
".ws",
];
const UPLOADS_PATH = './uploads';
module.exports = {
directories,
DIRECTORIES,
UNSAFE_EXTENSIONS,
UPLOADS_PATH,
}