Not really following what you are trying to do. Routing in Wappler is simple and is handled via the UI, no need to edit server.js etc.
This may help.