I am Creating a small Loopback application for Authentication and Authorization. To Develop this app I following These Steps -
- First I added a data source in datascource,json file.
- Enable the
server.enableAuth();
in boot Script. - Created a Custom employee Model with base 'User' Model.
- added this Model in
model-config.json
with datasource. - I Created a another Model 'Employeefeedbacks' and also add this in
model-config.json
. - I create a
Get
method in 'Employeefeedbacks.js' file and returnstring
data. - when i test this
Get
api than it return String data.
So problem is that , I want the Authenticate first and than it can return data . How can i do it . any idea .
Please tell me if you need more info !!!
via Rakesh
No comments:
Post a Comment