fix: wrong endpoints
This commit is contained in:
parent
c7aec45592
commit
aa7d865352
3 changed files with 3 additions and 3 deletions
|
|
@ -37,7 +37,7 @@ type ProductGroupUpdate = {
|
||||||
@Tags("Product Group")
|
@Tags("Product Group")
|
||||||
@Security("keycloak")
|
@Security("keycloak")
|
||||||
export class ProductGroup extends Controller {
|
export class ProductGroup extends Controller {
|
||||||
@Get()
|
@Get("stats")
|
||||||
async getProductGroupStats() {
|
async getProductGroupStats() {
|
||||||
return await prisma.productGroup.count();
|
return await prisma.productGroup.count();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ type ProductTypeUpdate = {
|
||||||
@Tags("Product Type")
|
@Tags("Product Type")
|
||||||
@Security("keycloak")
|
@Security("keycloak")
|
||||||
export class ProductType extends Controller {
|
export class ProductType extends Controller {
|
||||||
@Get()
|
@Get("stats")
|
||||||
async getProductTypeStats() {
|
async getProductTypeStats() {
|
||||||
return await prisma.productType.count();
|
return await prisma.productType.count();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ function imageLocation(id: string) {
|
||||||
@Tags("Service")
|
@Tags("Service")
|
||||||
@Security("keycloak")
|
@Security("keycloak")
|
||||||
export class ServiceController extends Controller {
|
export class ServiceController extends Controller {
|
||||||
@Get()
|
@Get("stats")
|
||||||
async getServiceStats() {
|
async getServiceStats() {
|
||||||
return await prisma.service.count();
|
return await prisma.service.count();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue