fix(panel): 服主在控制台看得到 LuckPerms 入口,归属判定统一走 /me/servers
This commit is contained in:
10 files changed
+108
-28
No files matched your search
@@ -20,6 +20,7 @@ import type {
|
||||
ServerFileEntry,
|
||||
ServerJob,
|
||||
ServerInfo,
|
||||
ServerStatus,
|
||||
SessionView,
|
||||
UserDetail,
|
||||
UserView,
|
||||
@@ -200,7 +201,7 @@ export const api = {
|
||||
fleet: () =>
|
||||
request<{ servers: FleetServer[] }>("GET", "/fleet").then((r) => r.servers ?? []),
|
||||
|
||||
status: (name: string) => request<ServerInfo>("GET", `/servers/${name}/status`),
|
||||
status: (name: string) => request<ServerStatus>("GET", `/servers/${name}/status`),
|
||||
|
||||
wake: (name: string) =>
|
||||
request<{ name: string; desiredState: string }>("POST", `/servers/${name}/wake`),
|
||||
|
||||
Reference in new issue
Block a user