Use an Express style API that you know and love without the security concerns and hassle of making it work inside Electron.
$ npm install --save routeron
initRouter
on main process file
main.js
const router = routeron(schemeName); // optional param schemaName, default `app`