trigger screen
This commit is contained in:
parent
fbcfba3948
commit
d10a829882
30 changed files with 19101 additions and 26 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue