I changed the action mouse pointer on my website to this on April 1st.
I didn't bother removing it. 😆
What is the difference between app.get
and router.get
?
Can I still use params.app.get
in the new init
hook?
@pitaj router
and app
are both routers, per se. However, router
refers to a separate router instantiated specifically for plugins to use.
When NodeBB reloads, the plugin router gets regenerated, while the application router does not.
This allows plugins to be both activated and deactivated without a full restart.
... You also cannot overwrite existing application routes in app
, though you weren't allowed to do that for awhile now.