ngrx-course-v4 icon indicating copy to clipboard operation
ngrx-course-v4 copied to clipboard

server data show with empty result

Open Aravindaful opened this issue 7 years ago • 1 comments

I used this url http://localhost:8090/api/threads . it shows {"participants":[],"messages":[],"threads":[]}

again I tried http://localhost:8090/api/threads/1 then it shows Cannot GET /api/threads/1

when after clone the project and try to npm run api-server it shows compile time errors

Argument of type 'string | string[]' is not assignable to parameter of type 'string'.

errors are in all the .ts files in server/api

every participantId places it shows errors. I fixed them by using const participantId = parseInt(req.headers['userid'] as string); to all the places

but data not retrieving when call to api/threads or api/threads/1 please help me.

Aravindaful avatar Jul 27 '18 12:07 Aravindaful

@jhades , are you there???

Aravindaful avatar Jul 29 '18 02:07 Aravindaful