Added e-mail alert settings, saveable but not integrated yet.

This commit is contained in:
2026-07-18 06:24:07 +02:00
parent 479b044798
commit 216e7f59ef
18 changed files with 231 additions and 75 deletions
+3 -5
View File
@@ -1,5 +1,3 @@
import { stringify } from '@brillout/json-serializer/stringify';
import promiseProps from '../../utils/promise-props.js';
import slugify from '../../utils/slugify.js';
import { getIdsBySlug } from '../cache.js';
@@ -35,7 +33,7 @@ export async function fetchMoviesApi(req, res) {
limit: Number(req.query.limit) || 30,
}, req.user, { restriction: req.restriction });
res.send(stringify({
res.send({
movies,
aggYears,
aggActors,
@@ -43,7 +41,7 @@ export async function fetchMoviesApi(req, res) {
aggChannels,
limit,
total,
}));
});
}
export async function fetchMovieApi(req, res) {
@@ -53,7 +51,7 @@ export async function fetchMovieApi(req, res) {
throw new HttpError(`No movie with ID ${req.params.movieId} found`, 404);
}
res.send(stringify(movie));
res.send(movie);
}
export const moviesSchema = `