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'; |
||||
|
||||
@Controller() |
||||
export class UtilsController { |
||||
constructor(private readonly utilsService: UtilsService) {} |
||||
|
||||
|
||||
@Get('/api/v1/db/meta/nocodb/info') |
||||
info() { |
||||
return this.utilsService.info(); |
||||
info(@Request() req) { |
||||
return this.utilsService.info({ |
||||
ncSiteUrl: req.ncSiteUrl, |
||||
}); |
||||
} |
||||
|
||||
|
||||
@Get('/api/v1/version') |
||||
version() { |
||||
return this.utilsService.versionInfo(); |
||||
} |
||||
|
||||
} |
||||
|
Loading…
Reference in new issue