- 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.
11 lines
199 B
TypeScript
11 lines
199 B
TypeScript
export interface Resource {
|
|
id: number;
|
|
topicId: string;
|
|
url: string;
|
|
description: string;
|
|
type: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}
|
|
|
|
export let resources: Resource[] = [];
|