cityssm/parking-ticket-system

View on GitHub
handlers/admin-get/cleanup.ts

Summary

Maintainability
A
1 hr
Test Coverage
import type { Request, Response } from 'express'

import { getDatabaseCleanupCounts } from '../../database/parkingDB/getDatabaseCleanupCounts.js'

export default function handler(_request: Request, response: Response): void {
  const counts = getDatabaseCleanupCounts()

  response.render('admin-cleanup', {
    headTitle: 'Database Cleanup',
    counts
  })
}