24 lines
720 B
TypeScript
24 lines
720 B
TypeScript
![]() |
import { CrudController } from "../../core/controllers/crud_controller";
|
||
|
import { CreateNewProjectInstanceScenario } from "./create_new_project_scenario";
|
||
|
import {
|
||
|
ProjectInstanceDbModel,
|
||
|
ProjectInstanceValidationModel,
|
||
|
} from "./project_instance_model";
|
||
|
|
||
|
export class ProjectInstancePresentation extends CrudController<
|
||
|
ProjectInstanceValidationModel,
|
||
|
typeof ProjectInstanceDbModel
|
||
|
> {
|
||
|
constructor() {
|
||
|
super({
|
||
|
validationModel: ProjectInstanceValidationModel,
|
||
|
url: "project_instance",
|
||
|
databaseModel: ProjectInstanceDbModel,
|
||
|
});
|
||
|
super.post(new CreateNewProjectInstanceScenario().call);
|
||
|
// super.router.post(this.mainURL + "/file", (req, res) => {
|
||
|
// TODO:
|
||
|
// });
|
||
|
}
|
||
|
}
|