Merge pull request #3428 from janhq/chore/disable-internal-rest-apis-due-to-vulnerability-possible-issues

chore: disable internal REST endpoints due to a vulnerability issue
This commit is contained in:
Louis 2024-08-21 21:47:18 +07:00 committed by GitHub
commit 90e4d85f9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,16 +1,16 @@
import { HttpServer } from '../HttpServer'
import { commonRouter } from './common'
import { downloadRouter } from './app/download'
import { handleRequests } from './app/handlers'
export const v1Router = async (app: HttpServer) => {
// MARK: Public API Routes
app.register(commonRouter)
// MARK: Internal Application Routes
handleRequests(app)
// DEPRECATED: Vulnerability possible issues
// handleRequests(app)
// Expanded route for tracking download progress
// TODO: Replace by Observer Wrapper (ZeroMQ / Vanilla Websocket)
app.register(downloadRouter)
// DEPRECATED: Jan FE Docker deploy is deprecated
// app.register(downloadRouter)
}