Verified Commit 80cdf5e1 authored by Erick Hitter's avatar Erick Hitter
Browse files

Cache the error endpoint too, since we can

parent 40666928
...@@ -29,7 +29,7 @@ app.get( '/', cache( '30 minutes' ), function( req, res ) { ...@@ -29,7 +29,7 @@ app.get( '/', cache( '30 minutes' ), function( req, res ) {
} ); } );
// API requests require a domain // API requests require a domain
app.get( '/api', function( req, res ) { app.get( '/api', cache( '1 day' ), function( req, res ) {
res.status( 400 ).json( { error: 'Must specify a domain!' } ); res.status( 400 ).json( { error: 'Must specify a domain!' } );
} ); } );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment