webstudio/server/src/features/project_instance/project_instance_presentation.ts

24 lines
720 B
TypeScript
Raw Normal View History

2023-11-20 00:48:40 +03:00
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:
// });
}
}