mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Apply review comments
This commit is contained in:
@ -109,7 +109,7 @@ class ProductController(ControllerBase):
|
||||
|
||||
@api_controller("/product-type", permissions=[IsCounterAdmin])
|
||||
class ProductTypeController(ControllerBase):
|
||||
@route.get("", response=list[ProductTypeSchema], url_name="fetch-product-types")
|
||||
@route.get("", response=list[ProductTypeSchema], url_name="fetch_product_types")
|
||||
def fetch_all(self):
|
||||
return ProductType.objects.order_by("order")
|
||||
|
||||
|
Reference in New Issue
Block a user