Extract API endpoint for moving UI

This commit is contained in:
Cohee
2024-03-20 01:07:28 +02:00
parent b261c8c4a9
commit abb8bdbc1e
4 changed files with 31 additions and 17 deletions

View File

@@ -8,7 +8,7 @@ const { DIRECTORIES, UPLOADS_PATH } = require('../constants');
const { invalidateThumbnail } = require('./thumbnails');
const { getImages } = require('../util');
const router = new express.Router();
const router = express.Router();
router.post('/all', jsonParser, function (request, response) {
var images = getImages('public/backgrounds');