Internal Service β This is not an HTTP endpoint. Itβs called by the ranking-score route.
Purpose
Checks if a URL already has a score in the database. If yes, returns it. If no, generates a new score (32-49) and saves it.Function Signature
Parameters
Returns
int - The ranking score (32-49 for new URLs, or existing stored score)
Logic Flow
Why 32-49?
The score range is intentionally low to:- Show visitors they have βroom to improveβ
- Create urgency to sign up
- Leave headroom for competitor scores (which are always higher)