File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- 'use strict' ;
1
+ 'use strict'
2
2
3
3
/**
4
4
* Lightweight web framework for your serverless applications
@@ -31,7 +31,7 @@ class API {
31
31
this . _routes = { }
32
32
33
33
// Default callback
34
- this . _cb = function ( err , res ) { console . log ( 'No callback specified' ) }
34
+ this . _cb = function ( ) { console . log ( 'No callback specified' ) }
35
35
36
36
// Middleware stack
37
37
this . _middleware = [ ]
@@ -106,7 +106,7 @@ class API {
106
106
handler : handler ,
107
107
route : '/' + parsedPath . join ( '/' ) ,
108
108
path : '/' + this . _prefix . concat ( parsedPath ) . join ( '/' ) }
109
- } : { } ) ,
109
+ } : { } ) ,
110
110
route . slice ( 0 , i + 1 )
111
111
)
112
112
}
@@ -170,7 +170,7 @@ class API {
170
170
// Strip the headers (TODO: find a better way to handle this)
171
171
response . _headers = { }
172
172
173
- let message ;
173
+ let message
174
174
175
175
if ( e instanceof Error ) {
176
176
response . status ( this . _errorStatus )
@@ -250,8 +250,8 @@ class API {
250
250
251
251
// Recursive function to create routes object
252
252
setRoute ( obj , value , path ) {
253
- if ( typeof path === " string" ) {
254
- let path = path . split ( '.' )
253
+ if ( typeof path === ' string' ) {
254
+ let path = path . split ( '.' )
255
255
}
256
256
257
257
if ( path . length > 1 ) {
You can’t perform that action at this time.
0 commit comments