import '../../../globals.js';
// Copyright 2023, University of Colorado Boulder
// @author Matt Pennington (PhET Interactive Simulations)

const persistentQueue = require( './persistentQueue' );

module.exports = function getStatus( req, res ) {
  const buildStatus = persistentQueue.getQueue();
  res.render( 'getStatus', {
    builds: buildStatus.queue,
    currentTask: buildStatus.currentTask,
    currentTime: new Date().toString()
  } );
};