mirror of https://github.com/nocodb/nocodb
Pranav C
2 years ago
3 changed files with 10 additions and 10 deletions
@ -1,20 +1,19 @@ |
|||||||
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common'; |
import { Controller, Get, Request } from '@nestjs/common'; |
||||||
import { UtilsService } from './utils.service'; |
import { UtilsService } from './utils.service'; |
||||||
|
|
||||||
@Controller() |
@Controller() |
||||||
export class UtilsController { |
export class UtilsController { |
||||||
constructor(private readonly utilsService: UtilsService) {} |
constructor(private readonly utilsService: UtilsService) {} |
||||||
|
|
||||||
|
|
||||||
@Get('/api/v1/db/meta/nocodb/info') |
@Get('/api/v1/db/meta/nocodb/info') |
||||||
info() { |
info(@Request() req) { |
||||||
return this.utilsService.info(); |
return this.utilsService.info({ |
||||||
|
ncSiteUrl: req.ncSiteUrl, |
||||||
|
}); |
||||||
} |
} |
||||||
|
|
||||||
|
|
||||||
@Get('/api/v1/version') |
@Get('/api/v1/version') |
||||||
version() { |
version() { |
||||||
return this.utilsService.versionInfo(); |
return this.utilsService.versionInfo(); |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue