hngprojects / hng_boilerplate_python_fastapi_web

Apache License 2.0
154 stars 137 forks source link

[FIX]: Add IP-Address To BlogDislike AT Creation #931

Open chimeziriobioha opened 3 weeks ago

chimeziriobioha commented 3 weeks ago

Description

The current implementation of BlogDislike creation omits the addition of the function to extract and add client ip_address to the existing ip address column of the blog dislike table. Also refactor the endpoint and move HTTPExeption references from routes to services to maintain accepted standards for the codebase.

Expected Behavior

The ip address is supposed to be extracted from each request and added to the appropriate column for reference and insight purposes.

Screenshots

blog dislike code on github marked

Acceptance Criteria:

Testing: