File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ MONGODB_URI = mongodb://localhost:27017/tsstarterdb
2+
3+ SECRET = YOUR_SECRET
Original file line number Diff line number Diff line change 1818public /css /main.css
1919
2020# API keys and secrets
21- .env
21+ # .env [Temporary]
2222
2323# Dependency directory
2424node_modules
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export class AuthMiddleware implements IMiddleware {
3333 * @param req
3434 */
3535 private extractHeaderFromRequest ( req : Request ) : string {
36- const authHeader = req . headers . authorization ;
36+ const authHeader : any = req . headers . authorization ;
3737
3838 if ( authHeader && authHeader . split ( ' ' ) [ 0 ] === 'Bearer' ) {
3939 return authHeader . split ( ' ' ) [ 1 ] ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export class TvMazeService {
3434 return await fetch ( 'http://api.tvmaze.com/shows?' + queryString )
3535 . then ( res => res . json ( ) )
3636 . then ( json => _ . chain ( json )
37- . map ( function ( values ) {
37+ . map ( function ( values : any ) {
3838 values . _links . self . href = _ . replace ( values . _links . self . href ,
3939 'api.tvmaze.com' , 'localhost:3000/api' ) ;
4040 values . _links . previousepisode . href = _ . replace ( values . _links . previousepisode . href ,
You can’t perform that action at this time.
0 commit comments