Add production-ready SuperAdmin API features for tenants, SMS, servers, and plugins.
Includes mobile auth, get_user/get_version, SMS wallet parity endpoints, appearance backfill, and related Prisma migrations. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { Controller, Get, Headers, Query } from '@nestjs/common';
|
||||
import { GetVersionService } from './get-version.service';
|
||||
|
||||
@Controller()
|
||||
export class GetVersionController {
|
||||
constructor(private readonly getVersionService: GetVersionService) {}
|
||||
|
||||
@Get('get_version')
|
||||
getVersion(
|
||||
@Headers('host') host?: string,
|
||||
@Headers('x-forwarded-host') forwardedHost?: string,
|
||||
@Query('domain') domain?: string,
|
||||
) {
|
||||
return this.getVersionService.resolveByHost(
|
||||
domain || forwardedHost || host,
|
||||
domain,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user