Skip to content

Commit

Permalink
chore: Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbrembeck committed Dec 9, 2024
1 parent ba85f6d commit e83bfe8
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 13 deletions.
7 changes: 6 additions & 1 deletion OpenAPI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ paths:
description: Internal Server Error.
tags:
- Grades
- Grades
/v0/product/{barcode}:
post:
operationId: ProductController_getProductDetails
Expand All @@ -43,7 +44,8 @@ paths:
'500':
description: Internal Server Error.
tags:
- Product Information
- Product
- Product
/v0/ingredients/{ingredients}:
get:
operationId: IngredientsController_getIngredients
Expand All @@ -65,6 +67,7 @@ paths:
?translate=false to the request.
tags:
- Ingredients
- Ingredients
/v1/ingredients/{ingredients}:
get:
operationId: IngredientsV1Controller_getIngredients
Expand All @@ -85,6 +88,7 @@ paths:
with disabled translation (Results might vary). Add flag
?translate=false to the request.
tags:
- IngredientsV1
- Ingredients
/v0/peta/{type}:
get:
Expand All @@ -106,6 +110,7 @@ paths:
description: Internal Server Error.
tags:
- Peta
- Peta
/health:
get:
operationId: HealthController_check
Expand Down
1 change: 0 additions & 1 deletion ismaybenotvegan.json
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,6 @@
"sucrose",
"suede",
"suet",
"sugar",
"sugar couleur",
"sugar esters of fatty acids",
"sugar glycerides",
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"start:prod": "bun dist/main.js",
"build": "nest build",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
Expand All @@ -18,7 +18,9 @@
"process:ingredients": "bun scripts/processIngredients.js",
"process:vegan": "pnpm run process:ingredients ../isvegan.json",
"process:notvegan": "pnpm run process:ingredients ../isnotvegan.json",
"process:maybenotvegan": "pnpm run process:ingredients ../ismaybenotvegan.json"
"process:maybenotvegan": "pnpm run process:ingredients ../ismaybenotvegan.json",
"process:all": "concurrently --names \"vegan,not vegan,maybe vegan\" --prefix-colors \"green,red,yellow\" \"pnpm process:vegan\" \"pnpm process:notvegan\" \"pnpm process:maybenotvegan\"",
"check": "concurrently --names \"lint,typecheck,test\" --prefix-colors \"yellow,blue,green\" \"pnpm lint\" \"tsc --noEmit\" \"pnpm test\""
},
"author": "JokeNetwork, Veganify Contributors",
"license": "MIT",
Expand Down Expand Up @@ -64,6 +66,7 @@
"@types/pump": "^1.1.3",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"concurrently": "^9.1.0",
"eslint": "^9.16.0",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.31.0",
Expand Down
32 changes: 25 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/product/product.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ import { Response } from "express";

import { ProductService } from "./product.service";


@Controller("v0/product")
export class ProductController {
constructor(private readonly productService: ProductService) {}
private readonly logger = new Logger(ProductController.name);

@Post(":barcode?")
@ApiTags("Product Information")
@ApiTags("Product")
@ApiResponse({
status: 200,
description: "Request returned a positive result.",
Expand Down

0 comments on commit e83bfe8

Please sign in to comment.