Basic structure of the project
- Added a model with in-memory database, and routes, controller and middleware to enable making initial CRUD calls to endpoints; - Added jest and an initial test.
This commit is contained in:
parent
74c1ee1b7b
commit
9c4ea4ca90
11 changed files with 3841 additions and 1 deletions
11
src/models/topic.ts
Normal file
11
src/models/topic.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
export interface Topic {
|
||||
id: number;
|
||||
name: string;
|
||||
content: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
version: number;
|
||||
parentTopicId: number;
|
||||
}
|
||||
|
||||
export let topics: Topic[] = [];
|
Loading…
Add table
Add a link
Reference in a new issue