- 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.
11 lines
307 B
Ruby
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
|