File

src/issuer/trust-list/trust-list-public/trust-list-public.controller.ts

Prefix

:tenantId/trust-list/:id

Description

Public controller for accessing trust lists

Index

Methods

Methods

getTrustListJwt
getTrustListJwt(tenantId: string, id: string)
Decorators :
@Get()

Returns the JWT of the trust list

Parameters :
Name Type Optional
tenantId string No
id string No
Returns : any
import { Controller, Get, Param } from "@nestjs/common";
import { ApiTags } from "@nestjs/swagger";
import { TrustListService } from "../trustlist.service";

/**
 * Public controller for accessing trust lists
 */
@ApiTags("Issuer")
@Controller(":tenantId/trust-list/:id")
export class TrustListPublicController {
    /**
     * Creates an instance of TrustListPublicController.
     * @param trustListService
     */
    constructor(private readonly trustListService: TrustListService) {}

    /**
     * Returns the JWT of the trust list
     * @param tenantId
     * @param id
     * @returns
     */
    @Get()
    getTrustListJwt(
        @Param("tenantId") tenantId: string,
        @Param("id") id: string,
    ) {
        return this.trustListService.getJwt(tenantId, id);
    }
}

results matching ""

    No results matching ""