issues
search
gbowne1
/
RadioLogger
A Radio Logging application build with NodeJS and ExpressJS
GNU General Public License v3.0
6
stars
7
forks
source link
Refactory server routes
#18
Closed
jzunigarce
closed
1 year ago
jzunigarce
commented
1 year ago
Details
Create routes directory
Put all routes in custom file on routes directory
Fix static files in html
Append news routes
Create file in routes directory. Set all routes and subroutes of resource in the object router. return object router
In /routes/index.js call new the routes, define the path and export the new route
Fix static files
In the dashboard.html file I added the relative path for the dashboard.css file. Add for all remaining static files.
The directory for the static files is in /client/public.
Example static link path: /css/dashboard
Details
Append news routes
Fix static files