feat: added inventory types get api
This commit is contained in:
@@ -3,6 +3,13 @@ const WidgetFamily = require("../models/WidgetFamily");
|
||||
const { InventoryTypes } = require("../config/constants");
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Gets the Inventory types
|
||||
*/
|
||||
getInventoryTypes: async (req, res, next) => {
|
||||
res.send({ success: true, data: InventoryTypes });
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the Inventory data by `id`
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user