Skip to content
Yos666666 edited this page Oct 7, 2022 · 3 revisions

/src/api/menu/index.js

Functions

Get menu from a category code

getMenu(categoryCode, lang, levels)
  • categoryCode - string : Code of category
  • lang - string? : current language ("fr" is the default value) - Optionnal
  • levels - int? : Number of recursion levels - Optionnal
Example
import { getMenu } from 'aquila-connector/api/menu';
const menu = await getMenu('category_code');

Clone this wiki locally