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:
commit
90e4d85f9d
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user