mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Moved code from broken branch.
This commit is contained in:
@@ -77,7 +77,8 @@ app.get( "/:theatreName/:airbaseName", ( req, res ) => {
|
||||
|
||||
app.get( "/:theatreName", ( req, res ) => {
|
||||
|
||||
const airbases = getAirbasesData( req.params.theatreName );
|
||||
const theatreName = req.params.theatreName.toLowerCase().replace( /\s*/g, "" );
|
||||
const airbases = getAirbasesData( theatreName );
|
||||
|
||||
if ( !airbases ) {
|
||||
sendInvalidTheatre( res );
|
||||
|
||||
Reference in New Issue
Block a user