Skip to content

Commit

Permalink
refactor: fixup lint
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Jul 28, 2022
1 parent 9fa2c89 commit 7f3061e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lambda-tiler/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LogConfig } from '@basemaps/shared';
import { LambdaHttpResponse, LambdaUrlRequest, lf } from '@linzjs/lambda';
import { LambdaHttpResponse, lf } from '@linzjs/lambda';
import { tileAttributionGet } from './routes/attribution.js';
import { fontGet, fontList } from './routes/fonts.js';
import { healthGet } from './routes/health.js';
Expand Down Expand Up @@ -44,7 +44,7 @@ handler.router.hook('response', (req, res) => {
res.header('access-control-allow-origin', '*');
});

// CORS is handled by function url hook so just return ok if the route exists
// CORS is handled by response hook so just return ok if the route exists
handler.router.options('*', (req) => {
const route = handler.router.router.find('GET', req.path);
if (route == null) return NotFound();
Expand Down

0 comments on commit 7f3061e

Please sign in to comment.