Skip to content

Commit 44929fa

Browse files
committed
refactor: rename api
1 parent bc3f637 commit 44929fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/agent-api/src/functions/user-get.ts renamed to packages/agent-api/src/functions/me-get.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
import { UserDbService } from "../user-db-service.js";
88
import { getUserId } from "../security.js";
99

10-
app.http("user", {
10+
app.http("me-get", {
1111
methods: ["GET"],
1212
authLevel: "anonymous",
1313
route: "me",
@@ -37,7 +37,7 @@ app.http("user", {
3737
jsonBody: { id: user.id },
3838
};
3939
} catch (error) {
40-
context.error("Error in user-get handler", error);
40+
context.error("Error in me-get handler", error);
4141
return {
4242
status: 500,
4343
jsonBody: { error: "Internal Server Error" },

0 commit comments

Comments
 (0)