Currently, apart from the database connection file, all our API code is in one file. As we add more endpoints, this becomes hard to maintain.
In a future lesson, we’ll learn how to split routes into separate files using Express Router.
Currently, apart from the database connection file, all our API code is in one file. As we add more endpoints, this becomes hard to maintain.
In a future lesson, we’ll learn how to split routes into separate files using Express Router.