1
0
mirror of synced 2025-12-22 19:34:15 -05:00

Combine cache control (#33067)

This commit is contained in:
Kevin Heis
2022-11-29 16:04:34 -08:00
committed by GitHub
parent 9cd9f87df2
commit f161f86ca1
11 changed files with 25 additions and 45 deletions

View File

@@ -4,10 +4,9 @@ import Ajv from 'ajv'
import addFormats from 'ajv-formats'
import { eventSchema, hydroNames } from '../../lib/schema-event.js'
import catchMiddlewareError from '../catch-middleware-error.js'
import { cacheControlFactory } from '../cache-control.js'
import { noCacheControl } from '../cache-control.js'
const router = express.Router()
const noCacheControl = cacheControlFactory(0)
const ajv = new Ajv()
addFormats(ajv)
const OMIT_FIELDS = ['type']