@lovelybunch/api 1.0.30 → 1.0.31
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.
|
@@ -33,7 +33,7 @@ function generateFilename(name) {
|
|
|
33
33
|
* GET /api/v1/agents/:id
|
|
34
34
|
* Load a specific agent document
|
|
35
35
|
*/
|
|
36
|
-
app.get('
|
|
36
|
+
app.get('/', async (c) => {
|
|
37
37
|
try {
|
|
38
38
|
const id = c.req.param('id');
|
|
39
39
|
const agentsPath = getAgentsPath();
|
|
@@ -73,7 +73,7 @@ app.get('/:id', async (c) => {
|
|
|
73
73
|
* PUT /api/v1/agents/:id
|
|
74
74
|
* Update a specific agent document
|
|
75
75
|
*/
|
|
76
|
-
app.put('
|
|
76
|
+
app.put('/', async (c) => {
|
|
77
77
|
try {
|
|
78
78
|
const id = c.req.param('id');
|
|
79
79
|
const body = await c.req.json();
|
|
@@ -145,7 +145,7 @@ app.put('/:id', async (c) => {
|
|
|
145
145
|
* DELETE /api/v1/agents/:id
|
|
146
146
|
* Delete a specific agent document
|
|
147
147
|
*/
|
|
148
|
-
app.delete('
|
|
148
|
+
app.delete('/', async (c) => {
|
|
149
149
|
try {
|
|
150
150
|
const id = c.req.param('id');
|
|
151
151
|
const agentsPath = getAgentsPath();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovelybunch/api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/server-with-static.js",
|
|
6
6
|
"exports": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@hono/node-server": "^1.13.7",
|
|
34
34
|
"@hono/node-ws": "^1.0.6",
|
|
35
|
-
"@lovelybunch/core": "^1.0.
|
|
36
|
-
"@lovelybunch/types": "^1.0.
|
|
35
|
+
"@lovelybunch/core": "^1.0.31",
|
|
36
|
+
"@lovelybunch/types": "^1.0.31",
|
|
37
37
|
"dotenv": "^17.2.1",
|
|
38
38
|
"fuse.js": "^7.0.0",
|
|
39
39
|
"gray-matter": "^4.0.3",
|