my-crud-lib 1.0.2 → 1.0.3

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/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { type Express } from 'express';
2
2
  export { createAuthRouter } from './modules/auth/auth.controller.js';
3
+ export { createUserRouter } from './modules/user/user.controller.js';
3
4
  export declare function createServer(): Express;
4
5
  export declare function mountDefaultRoutes(app: Express): void;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import express from 'express';
2
2
  import cors from 'cors';
3
3
  import bodyParser from 'body-parser';
4
4
  export { createAuthRouter } from './modules/auth/auth.controller.js';
5
- //export { createUserRouter } from './modules/user/user.router.js';
5
+ export { createUserRouter } from './modules/user/user.controller.js';
6
6
  export function createServer() {
7
7
  const app = express();
8
8
  app.use(cors());
@@ -11,7 +11,7 @@ export function createServer() {
11
11
  }
12
12
  export function mountDefaultRoutes(app) {
13
13
  const { createAuthRouter } = require('./modules/auth/auth.controller.js');
14
- const { createUserRouter } = require('./modules/user/user.router.js');
14
+ const { createUserRouter } = require('./modules/user/user.controller.js');
15
15
  app.use('/auth', createAuthRouter());
16
16
  app.use('/users', createUserRouter());
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-crud-lib",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Libreria CRUD modulare (Auth/User/Profile) con TS; Prisma opzionale via adapter",
5
5
  "license": "MIT",
6
6
  "type": "module",