Protecting item routes
You may be wondering how we're going to create the admin user account. Well, we're not going to be modifying the POST /users endpoint or making another new endpoint, we're actually going to use a script to create one.
If you look in the scripts folder which I added in this module, you'll see two files here, seed.js and run_seed.js
Let's take a look at seed.js first.
Click to load comments...