mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	fixes cookbook ordering in frontend
This commit is contained in:
		| @@ -21,13 +21,14 @@ export abstract class BaseAPI { | |||||||
|  |  | ||||||
| export abstract class BaseCRUDAPI<CreateType, ReadType, UpdateType = CreateType> | export abstract class BaseCRUDAPI<CreateType, ReadType, UpdateType = CreateType> | ||||||
|   extends BaseAPI |   extends BaseAPI | ||||||
|   implements CrudAPIInterface { |   implements CrudAPIInterface | ||||||
|  | { | ||||||
|   abstract baseRoute: string; |   abstract baseRoute: string; | ||||||
|   abstract itemRoute(itemId: string | number): string; |   abstract itemRoute(itemId: string | number): string; | ||||||
|  |  | ||||||
|   async getAll(page = 1, perPage = -1, params = {} as any) { |   async getAll(page = 1, perPage = -1, params = {} as any) { | ||||||
|     return await this.requests.get<PaginationData<ReadType>>(this.baseRoute, { |     return await this.requests.get<PaginationData<ReadType>>(this.baseRoute, { | ||||||
|       params: { page, perPage, ...params }, |       params: { page, perPage, orderBy: "position", orderDirection: "asc", ...params }, | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user