mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(server): server info api should be public (#6098)
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
import { Controller, Get } from '@nestjs/common';
|
import { Controller, Get } from '@nestjs/common';
|
||||||
|
|
||||||
|
import { Public } from './core/auth';
|
||||||
import { Config } from './fundamentals/config';
|
import { Config } from './fundamentals/config';
|
||||||
|
|
||||||
@Controller('/')
|
@Controller('/')
|
||||||
export class AppController {
|
export class AppController {
|
||||||
constructor(private readonly config: Config) {}
|
constructor(private readonly config: Config) {}
|
||||||
|
|
||||||
|
@Public()
|
||||||
@Get()
|
@Get()
|
||||||
info() {
|
info() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user