how to figure out where the hook is launched
-
Suppose to have this hook:
"hook": "filter:topics.get", "method": "orderTopics"
I know that when the hook is called the method is execute, but I don't want always execute the method. For some url like this:
/station
I don't want that the hook is throwed and I want specify this in the method:
//server side library.js converter.orderTopics = function(data, callback) { //Something like this var url_station=url.getUrl() // give me the current url }
Anyone can help me?
Copyright © 2024 NodeBB | Contributors