@semiont/backend 0.4.13 → 0.4.14
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.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +4 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -13302,6 +13302,10 @@ var openapi_default = {
|
|
|
13302
13302
|
},
|
|
13303
13303
|
authenticatedAs: {
|
|
13304
13304
|
type: "string"
|
|
13305
|
+
},
|
|
13306
|
+
projectName: {
|
|
13307
|
+
type: "string",
|
|
13308
|
+
description: "Name of the knowledge base project"
|
|
13305
13309
|
}
|
|
13306
13310
|
},
|
|
13307
13311
|
required: [
|
|
@@ -14624,6 +14628,8 @@ var statusRouter = new Hono();
|
|
|
14624
14628
|
statusRouter.use("/api/status", authMiddleware);
|
|
14625
14629
|
statusRouter.get("/api/status", async (c) => {
|
|
14626
14630
|
const user = c.get("user");
|
|
14631
|
+
const config2 = c.get("config");
|
|
14632
|
+
const projectName = config2._metadata?.projectName;
|
|
14627
14633
|
const response = {
|
|
14628
14634
|
status: "operational",
|
|
14629
14635
|
version: "0.1.0",
|
|
@@ -14633,7 +14639,8 @@ statusRouter.get("/api/status", async (c) => {
|
|
|
14633
14639
|
rbac: "planned"
|
|
14634
14640
|
},
|
|
14635
14641
|
message: "Ready to build the future of knowledge management!",
|
|
14636
|
-
authenticatedAs: user?.email
|
|
14642
|
+
authenticatedAs: user?.email,
|
|
14643
|
+
projectName
|
|
14637
14644
|
};
|
|
14638
14645
|
return c.json(response, 200);
|
|
14639
14646
|
});
|