crud-api-express 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +2 -2
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# CRUD API Controller using Express and Mongoose
|
|
2
2
|
|
|
3
|
-
npm install crud-api
|
|
3
|
+
npm install crud-api-express
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
This project provides a flexible and reusable CRUD (Create, Read, Update, Delete) API controller for MongoDB using Express.js and Mongoose.
|
|
@@ -35,7 +35,7 @@ Here's a basic example of how to use CrudController:
|
|
|
35
35
|
|
|
36
36
|
import express, { Request, Response } from 'express';
|
|
37
37
|
import mongoose, { Document, Model } from 'mongoose';
|
|
38
|
-
import CrudController, { CrudOptions } from 'crud-api';
|
|
38
|
+
import CrudController, { CrudOptions } from 'crud-api-express';
|
|
39
39
|
|
|
40
40
|
// Define your Mongoose schema and model
|
|
41
41
|
interface ExampleModel extends Document {
|