chore: disable internal REST endpoints due to a vulnerability issue

This commit is contained in:
Louis 2024-08-21 16:38:51 +07:00
parent dc8acc0d49
commit 81e1f16c85
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

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)
}