trigger screen

This commit is contained in:
IDONTSUDO 2023-11-01 18:24:43 +03:00
parent fbcfba3948
commit d10a829882
30 changed files with 19101 additions and 26 deletions

View file

@ -31,6 +31,7 @@ export class CoreHttpController<V> implements ICoreHttpController {
call(): Routes {
if (this.routes["POST"] != null) {
this.router.post(
this.url,
validationModelMiddleware(this.validationModel),
@ -72,6 +73,7 @@ export class CoreHttpController<V> implements ICoreHttpController {
res: Response,
usecase: CallBackFunction<T>
) {
let payload = null;
if (req["model"] != undefined) {
@ -85,7 +87,6 @@ export class CoreHttpController<V> implements ICoreHttpController {
if (req.query.id !== undefined) {
payload = String(req.query.id);
}
(await usecase(payload)).fold(
(ok) => {
res.json(ok);