cityssm/parking-ticket-system

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

Summary

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

import { getParkingBylawsWithOffenceStats } from '../../database/parkingDB/getParkingBylaws.js'

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

  response.render('bylaw-maint', {
    headTitle: 'By-Law Maintenance',
    bylaws
  })
}