File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 66 getAllSliseAdProvidersBySites ,
77 getSelectorsByProviderId ,
88 getSliseAdProvidersByDomain ,
9- // getSliseAdProvidersForAllSites,
9+ getSliseAdProvidersForAllSites ,
1010 removeProviders ,
1111 removeSliseAdProvidersBySites ,
1212 removeSliseAdProvidersForAllSites ,
@@ -157,10 +157,9 @@ sliseAdProvidersRouter
157157 . route ( '/all-sites' )
158158 . get (
159159 withExceptionHandler ( async ( _req , res ) => {
160- // const providers = await getSliseAdProvidersForAllSites();
160+ const providers = await getSliseAdProvidersForAllSites ( ) ;
161161
162- // res.status(200).send(providers);
163- res . status ( 200 ) . header ( 'Cache-Control' , 'public, max-age=300' ) . send ( [ ] ) ;
162+ res . status ( 200 ) . header ( 'Cache-Control' , 'public, max-age=300' ) . send ( providers ) ;
164163 } )
165164 )
166165 . post (
Original file line number Diff line number Diff line change @@ -56,10 +56,9 @@ export const addObjectStorageMethodsToRouter = <V extends any[]>(
5656 router . get (
5757 path === '/' ? `/:${ keyName } ` : `${ path } /:${ keyName } ` ,
5858 withExceptionHandler ( async ( req , res ) => {
59- // const { [keyName]: key } = req.params;
59+ const { [ keyName ] : key } = req . params ;
6060
61- // const value = await methods.getByKey(key);
62- const value = [ ] ;
61+ const value = await methods . getByKey ( key ) ;
6362
6463 res . status ( 200 ) . header ( 'Cache-Control' , 'public, max-age=300' ) . send ( value ) ;
6564 } )
@@ -69,8 +68,7 @@ export const addObjectStorageMethodsToRouter = <V extends any[]>(
6968 . route ( path )
7069 . get (
7170 withExceptionHandler ( async ( _req , res ) => {
72- // const values = await methods.getAllValues();
73- const values = { } ;
71+ const values = await methods . getAllValues ( ) ;
7472
7573 res . status ( 200 ) . header ( 'Cache-Control' , 'public, max-age=300' ) . send ( values ) ;
7674 } )
You can’t perform that action at this time.
0 commit comments