-
Notifications
You must be signed in to change notification settings - Fork 1
access control
Somkiat Puisungnoen edited this page Mar 24, 2024
·
1 revision
$git clone https://github.com/up1/workshop-nodejs-secure.git
$cd workshop-nodejs-secure
$cd src/a01-access-control
$npm i
$npm start
> [email protected] start
> nodemon index.js
[nodemon] 3.1.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node index.js`
Starting server
Listening on port 3000
Available routes:
╔═══════════╤═══════════╗
║ Method(s) │ Path ║
╟───────────┼───────────╢
║ POST │ /login ║
║ GET │ /profile ║
║ HEAD │ /profile ║
║ POST │ /register ║
╚═══════════╧═══════════╝
Fastify server is running