update models and create consumer domain accounts permissions
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { PublicWithToken } from '@/common/decorators/withToken.decorator'
|
||||
import { Controller, Get, Param } from '@nestjs/common'
|
||||
import { ApiTags } from '@nestjs/swagger'
|
||||
import { CatalogsService } from './catalog.service'
|
||||
@@ -8,26 +9,31 @@ export class CatalogsController {
|
||||
constructor(private readonly catalogService: CatalogsService) {}
|
||||
|
||||
@Get('guilds')
|
||||
@PublicWithToken()
|
||||
async getGuilds() {
|
||||
return this.catalogService.getGuilds()
|
||||
}
|
||||
|
||||
@Get('providers')
|
||||
@PublicWithToken()
|
||||
async getProviders() {
|
||||
return this.catalogService.getProviders()
|
||||
}
|
||||
|
||||
@Get('devices')
|
||||
@PublicWithToken()
|
||||
async getDevices() {
|
||||
return this.catalogService.getDevices()
|
||||
}
|
||||
|
||||
@Get('device_brands')
|
||||
@PublicWithToken()
|
||||
async getDeviceBrands() {
|
||||
return this.catalogService.getDeviceBrands()
|
||||
}
|
||||
|
||||
@Get('guilds/:guildId/good_categories')
|
||||
@PublicWithToken()
|
||||
async getGuildGoodCategories(@Param('guildId') guild_id: string) {
|
||||
return this.catalogService.getGuildGoodCategories(guild_id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user