mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-17 14:31:21 -05:00
merge kentors changes
This commit is contained in:
15
frontend/src/api/category.js
Normal file
15
frontend/src/api/category.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { baseURL } from "./api-utils";
|
||||
import { apiReq } from "./api-utils";
|
||||
|
||||
const categoryBase = baseURL + "category/";
|
||||
|
||||
const categoryURLs = {
|
||||
get_all: `${categoryBase}all`,
|
||||
};
|
||||
|
||||
export default {
|
||||
async get_all() {
|
||||
let response = await apiReq.get(categoryURLs.get_all);
|
||||
return response;
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user