cityssm/parking-ticket-system

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

Summary

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

import { getParkingLocations } from '../../helpers/functions.cache.js'

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

  response.render('location-maint', {
    headTitle: 'Parking Location Maintenance',
    locations
  })
}