ToolJet/server/src/controllers/app_config.controller.ts
Arpit 26c9cc655c
Fix linting errors across the app (#785)
* eslint-setup: rules for frontend and server

* setup pre-commit:hook

* frontend:eslint fixes

* frontend eslint errors and warning fixed

* eslint:fix for ./server

* fix server/test: expectatin string lint/error

* pre-commit:updated

* removed unwanted install cmd from docker file

* recommended settings and extension for vscode

* husky prepare script added

* updated extension recommendations

* added prettier as recommended extension

* added pre-commit to package.json

* remove .prettierrc file

* resolve changes

* resolve changes
2021-09-21 19:18:28 +05:30

15 lines
414 B
TypeScript

import { Controller, Get } from '@nestjs/common';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { AppConfigService } from '@services/app_config.service';
@Controller('config')
export class AppConfigController {
constructor(private AppConfigService: AppConfigService) {}
@Get()
async index() {
const config = await this.AppConfigService.public_config();
return config;
}
}