today_ai_weather/app/controllers/key_verification_controller.rb
songtianlun 5852d8724e feat: add key verification and IndexNow submission worker
- Implement KeyVerificationController to handle ID-based key verification.
- Create SubmitToIndexnowWorker for background processing of URL submissions.
- Add routes for key verification and extend functionality of URL submissions to IndexNow.

This commit enhances the application by allowing for verification of API keys and automatic submission of URLs to multiple endpoints, improving SEO and resource accessibility.
2025-04-08 14:04:16 +08:00

11 lines
307 B
Ruby

# app/controllers/key_verification_controller.rb
class KeyVerificationController < ApplicationController
def show
if params[:id] == "339ecd3e9cf648c29b767f5673329e48"
render plain: "339ecd3e9cf648c29b767f5673329e48"
else
render status: :not_found, plain: "Not Found"
end
end
end