Step into the ApacheBlaze universe, a world of arcade clicky games. Rumor has it that by playing certain games, you have the chance to win a grand prize. However, before you can dive into the fun, you’ll need to crack a puzzle.
@app.route('/', methods=['GET']) defindex(): game = request.args.get('game')
ifnot game: return jsonify({ 'error': 'Empty game name is not supported!.' }), 400
elif game notin app.config['GAMES']: return jsonify({ 'error': 'Invalid game name!' }), 400
elif game == 'click_topia': if request.headers.get('X-Forwarded-Host') == 'dev.apacheblaze.local': return jsonify({ 'message': f'{app.config["FLAG"]}' }), 200 else: return jsonify({ 'message': 'This game is currently available only from dev.apacheblaze.local.' }), 200
else: return jsonify({ 'message': 'This game is currently unavailable due to internal maintenance.' }), 200