Skip to content

Commit

Permalink
chore: deprecate Jan core's REST module - all API requests go to cort…
Browse files Browse the repository at this point in the history
…ex.cpp - use cortex.cpp swagger OpenAPI schema
  • Loading branch information
louis-jan committed Dec 19, 2024
1 parent 0271774 commit 552fa71
Show file tree
Hide file tree
Showing 40 changed files with 6,337 additions and 5,800 deletions.
8 changes: 0 additions & 8 deletions core/src/node/api/HttpServer.ts

This file was deleted.

7 changes: 0 additions & 7 deletions core/src/node/api/index.test.ts

This file was deleted.

2 changes: 0 additions & 2 deletions core/src/node/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export * from './HttpServer'
export * from './restful/v1'
export * from './common/handler'
1 change: 0 additions & 1 deletion core/src/node/api/processors/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ jest.mock('../../helper', () => ({
...jest.requireActual('../../helper'),
getJanDataFolderPath: () => './app',
}))
import { dirname } from 'path'
import { App } from './app'

it('should call stopServer', () => {
Expand Down
3 changes: 0 additions & 3 deletions core/src/node/api/processors/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { basename, dirname, isAbsolute, join, relative } from 'path'
import { Processor } from './Processor'
import {
log as writeLog,
appResourcePath,
getAppConfigurations as appConfiguration,
updateAppConfiguration,
normalizeFilePath,
Expand Down Expand Up @@ -91,8 +90,6 @@ export class App implements Processor {
port: args?.port,
isCorsEnabled: args?.isCorsEnabled,
isVerboseEnabled: args?.isVerboseEnabled,
schemaPath: join(appResourcePath(), 'docs', 'openapi', 'jan.yaml'),
baseDir: join(appResourcePath(), 'docs', 'openapi'),
prefix: args?.prefix,
})
}
Expand Down
62 changes: 0 additions & 62 deletions core/src/node/api/restful/app/download.test.ts

This file was deleted.

23 changes: 0 additions & 23 deletions core/src/node/api/restful/app/download.ts

This file was deleted.

16 changes: 0 additions & 16 deletions core/src/node/api/restful/app/handlers.test.ts

This file was deleted.

13 changes: 0 additions & 13 deletions core/src/node/api/restful/app/handlers.ts

This file was deleted.

21 changes: 0 additions & 21 deletions core/src/node/api/restful/common.test.ts

This file was deleted.

82 changes: 0 additions & 82 deletions core/src/node/api/restful/common.ts

This file was deleted.

Loading

0 comments on commit 552fa71

Please sign in to comment.