Update .env.example and README.md to clarify JWT_SECRET requirements; enhance telemt API route handling to preserve query parameters; adjust TypeScript configuration to exclude specific directories; improve data grid components with new features and optimizations.
This commit is contained in:
@@ -9,7 +9,9 @@ import { sha256, randomBytes } from './auth.js'
|
||||
export async function telemtRoutes(app: FastifyInstance) {
|
||||
app.all('/api/telemt/*', { preHandler: requireAuth }, async (request, reply) => {
|
||||
const suffix = (request.params as { '*': string })['*']
|
||||
const path = `/v1/${suffix}`
|
||||
const qsIndex = request.url.indexOf('?')
|
||||
const query = qsIndex >= 0 ? request.url.slice(qsIndex) : ''
|
||||
const path = `/v1/${suffix}${query}`
|
||||
const method = request.method.toUpperCase()
|
||||
|
||||
if (app.config.panelMode === 'standalone') {
|
||||
@@ -96,7 +98,9 @@ export async function fleetRoutes(app: FastifyInstance) {
|
||||
app.all('/api/servers/:id/telemt/*', { preHandler: requireAuth }, async (request, reply) => {
|
||||
const { id } = request.params as { id: string }
|
||||
const suffix = (request.params as { id: string; '*': string })['*']
|
||||
const path = `/v1/${suffix}`
|
||||
const qsIndex = request.url.indexOf('?')
|
||||
const query = qsIndex >= 0 ? request.url.slice(qsIndex) : ''
|
||||
const path = `/v1/${suffix}${query}`
|
||||
const method = request.method.toUpperCase()
|
||||
|
||||
if (app.config.panelMode === 'standalone' || id === 'local') {
|
||||
|
||||
Reference in New Issue
Block a user