The router should not contain the functions.
Router should just be a list of routes.
Controller should have the functions.
In the root create dir controllers.
https://gist.github.com/tjkhara/cf7fe558f86d609c0d97296a100ed65f
https://gist.github.com/tjkhara/367930f4ac6a553dd3341d73074c4398
https://gist.github.com/tjkhara/6afdbdbff731a3bbc733761607c54e1d
https://gist.github.com/tjkhara/34f07c20119b29c5511a29b6371e0bac
https://gist.github.com/tjkhara/b4e75f563c4a8eebb908a27597891d2d
| tkhara@pop-os:~/envs/javascript_envs/task-manager$ git push heroku main | |
| Enumerating objects: 19, done. | |
| Counting objects: 100% (19/19), done. | |
| Delta compression using up to 4 threads | |
| Compressing objects: 100% (15/15), done. | |
| Writing objects: 100% (19/19), 38.52 KiB | 2.41 MiB/s, done. | |
| Total 19 (delta 0), reused 0 (delta 0) | |
| remote: Compressing source files... done. | |
| remote: Building source: | |
| remote: |
| tkhara@pop-os:~/envs/javascript_envs/task-manager$ npm install | |
| > [email protected] install /home/tkhara/envs/javascript_envs/task-manager/node_modules/sharp | |
| > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy) | |
| info sharp Using cached /home/tkhara/.npm/_libvips/libvips-8.7.0-linux-x64.tar.gz | |
| prebuild-install WARN install No prebuilt binaries found (target=12.20.0 runtime=node arch=x64 libc= platform=linux) | |
| make: Entering directory '/home/tkhara/envs/javascript_envs/task-manager/node_modules/sharp/build' | |
| TOUCH Release/obj.target/libvips-cpp.stamp | |
| CXX(target) Release/obj.target/sharp/src/common.o |