Description
In a previous issue, we created a metadata endpoint but hardcoded the dummy descriptions directly inside the route logic.
This makes the route file messy and difficult to update.
We need to extract this data into a dedicated JSON file within our data/ folder and read from it dynamically.
This separates our data layer from our business logic, keeping the controllers clean.
Requirements
Description
In a previous issue, we created a metadata endpoint but hardcoded the dummy descriptions directly inside the route logic.
This makes the route file messy and difficult to update.
We need to extract this data into a dedicated JSON file within our
data/folder and read from it dynamically.This separates our data layer from our business logic, keeping the controllers clean.
Requirements
data/tokenMetadata.json./api/v1/tokens/:symbol/metadataroute to import and search through this JSON file.