mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(settings): remove stats logs from swagger
This commit is contained in:
@@ -356,18 +356,28 @@ export const settingsRouter = createTRPCRouter({
|
|||||||
return false;
|
return false;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
readStatsLogs: adminProcedure.input(apiReadStatsLogs).query(({ input }) => {
|
readStatsLogs: adminProcedure
|
||||||
const rawConfig = readMonitoringConfig();
|
.meta({
|
||||||
const parsedConfig = parseRawConfig(
|
openapi: {
|
||||||
rawConfig as string,
|
path: "/read-stats-logs",
|
||||||
input.page,
|
method: "POST",
|
||||||
input.sort,
|
override: true,
|
||||||
input.search,
|
enabled: false,
|
||||||
input.status,
|
},
|
||||||
);
|
})
|
||||||
|
.input(apiReadStatsLogs)
|
||||||
|
.query(({ input }) => {
|
||||||
|
const rawConfig = readMonitoringConfig();
|
||||||
|
const parsedConfig = parseRawConfig(
|
||||||
|
rawConfig as string,
|
||||||
|
input.page,
|
||||||
|
input.sort,
|
||||||
|
input.search,
|
||||||
|
input.status,
|
||||||
|
);
|
||||||
|
|
||||||
return parsedConfig;
|
return parsedConfig;
|
||||||
}),
|
}),
|
||||||
readStats: adminProcedure.query(() => {
|
readStats: adminProcedure.query(() => {
|
||||||
const rawConfig = readMonitoringConfig();
|
const rawConfig = readMonitoringConfig();
|
||||||
const processedLogs = processLogs(rawConfig as string);
|
const processedLogs = processLogs(rawConfig as string);
|
||||||
|
|||||||
Reference in New Issue
Block a user