a Sails v1 application
git clone repo folder
cd folder
yarn install
sails lift
or
yarn start
or
pm2 start app.js
http://localhost:1337/teste/login?user=demo&pass=demo
take token and pass it in the Header of url
http://localhost:1337/teste/teste
with Authorization: token xyz1tuv.abc2def.qwe3rty
- /api/services/jwtauth.js
- /config/policies.js
- /api/policies/isAuthenticate.js
- /api/controllers/teste/login.js
- /api/controllers/teste/teste.js
This app was originally generated on Sat Nov 03 2018 23:48:08 GMT-0300 (-03) using Sails v1.0.2.