Error: Route.get() requires callback functions but got a [object Undefined]

Plugin Development
  • GNU/Linux
    #1

    In my library.js I need to create a custom route so I do:

    params.router.get('/admin/test/:nameTest', params.middleware.admin.buildHeader, controllers.renderTest);

    But I obtain "Error executing 'static:app.load' in plugin 'nodebb-plugin----". Anyone can help me to resolve this problem?


Suggested Topics


  • 0 Votes
    18 Posts
    812 Views

  • 0 Votes
    4 Posts
    1361 Views

  • 0 Votes
    1 Posts
    1117 Views

  • 0 Votes
    2 Posts
    1375 Views

  • 5 Votes
    43 Posts
    19130 Views

| | | |