crud and http controller
This commit is contained in:
parent
cba12be4b1
commit
c27c061c15
51 changed files with 930 additions and 387 deletions
14
server/src/core/interfaces/payload.ts
Normal file
14
server/src/core/interfaces/payload.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
// export class Payload<T>{
|
||||
// model: T | undefined
|
||||
// query:string | undefined
|
||||
// setModel(model:T){
|
||||
// this.model = model
|
||||
// }
|
||||
// setQuery(query:string){
|
||||
// this.query = query
|
||||
// }
|
||||
// isEmpty(){
|
||||
// return this.model != undefined || this.query != undefined
|
||||
// }
|
||||
// }
|
3
server/src/core/interfaces/response.ts
Normal file
3
server/src/core/interfaces/response.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export interface ICreateObjectDataBase {
|
||||
id: string;
|
||||
}
|
14
server/src/core/interfaces/router.ts
Normal file
14
server/src/core/interfaces/router.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { Router } from "express";
|
||||
|
||||
export interface Routes {
|
||||
router: Router;
|
||||
}
|
||||
|
||||
export interface IRouteModel {
|
||||
validationModel: any;
|
||||
url: string;
|
||||
databaseModel: any;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue