rotifex 0.1.4 → 0.1.6
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/README.md +6 -6
- package/package.json +1 -1
- package/src/auth/auth.routes.js +0 -4
- package/src/server/server.js +4 -0
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Rotifex
|
|
3
|
+
# Rotifex
|
|
4
4
|
|
|
5
|
-
>
|
|
6
|
-
> It is structured for compatibility with Docusaurus, Mintlify, GitBook, and similar systems.
|
|
5
|
+
> open the documentaion at [Docs](https://rotifex-docs.vercel.app/)
|
|
7
6
|
|
|
8
7
|
---
|
|
8
|
+
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```bash
|
|
@@ -26,9 +26,9 @@ npx rotifex start
|
|
|
26
26
|
|
|
27
27
|
## Commands
|
|
28
28
|
|
|
29
|
-
| Command
|
|
30
|
-
|
|
|
31
|
-
| `start`
|
|
29
|
+
| Command | Description |
|
|
30
|
+
| ------- | ------------------------------------ |
|
|
31
|
+
| `start` | Start the Rotifex development server |
|
|
32
32
|
|
|
33
33
|
## Table of Contents
|
|
34
34
|
|
package/package.json
CHANGED
package/src/auth/auth.routes.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { makeAuthController } from './auth.controller.js';
|
|
2
|
-
import { ensureAuthSchema } from './auth.service.js';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Auth route group — registered under the root prefix.
|
|
@@ -15,9 +14,6 @@ import { ensureAuthSchema } from './auth.service.js';
|
|
|
15
14
|
* @param {{ db: import('../db/adapters/base.js').DatabaseAdapter }} opts
|
|
16
15
|
*/
|
|
17
16
|
export async function authRoutes(app, { db }) {
|
|
18
|
-
// Ensure the password_hash column exists on the users table.
|
|
19
|
-
ensureAuthSchema(db);
|
|
20
|
-
|
|
21
17
|
const ctrl = makeAuthController(db);
|
|
22
18
|
|
|
23
19
|
app.post('/auth/register', (req, reply) => ctrl.register(req, reply));
|
package/src/server/server.js
CHANGED
|
@@ -10,6 +10,7 @@ import { healthRoutes } from './routes/health.js';
|
|
|
10
10
|
import { fileRoutes } from './routes/files.js';
|
|
11
11
|
import { adminRoutes } from './routes/admin.js';
|
|
12
12
|
import { authRoutes } from '../auth/auth.routes.js';
|
|
13
|
+
import { ensureAuthSchema } from '../auth/auth.service.js';
|
|
13
14
|
import { aiRoutes } from '../ai/ai.routes.js';
|
|
14
15
|
import { agentRoutes } from '../ai/agent.routes.js';
|
|
15
16
|
import { registerJwtMiddleware } from '../auth/jwt.middleware.js';
|
|
@@ -70,6 +71,9 @@ export async function createServer(config) {
|
|
|
70
71
|
// ── Dynamic REST Engine ─────────────────────────────────────────────
|
|
71
72
|
bootstrapEngine(app, db);
|
|
72
73
|
|
|
74
|
+
// Ensure password_hash column exists on the users table now that it's created.
|
|
75
|
+
ensureAuthSchema(db);
|
|
76
|
+
|
|
73
77
|
// ── File Storage ────────────────────────────────────────────────────
|
|
74
78
|
const storage = new StorageManager(db, config.storage);
|
|
75
79
|
storage.init();
|