crud and http controller
This commit is contained in:
parent
cba12be4b1
commit
c27c061c15
51 changed files with 930 additions and 387 deletions
15
server/src/features/functions/functions_presentation.ts
Normal file
15
server/src/features/functions/functions_presentation.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { CrudController } from "../../core/controllers/crud_controller";
|
||||
import { FunctionsDBModel, FunctionsModel } from "./functions_model";
|
||||
|
||||
export class FunctionsPresentation extends CrudController<
|
||||
FunctionsModel,
|
||||
typeof FunctionsDBModel
|
||||
> {
|
||||
constructor() {
|
||||
super({
|
||||
url: "functions",
|
||||
validationModel: FunctionsModel,
|
||||
databaseModel: FunctionsDBModel,
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue