koyablue / weather-wear

Web app that suggests clothing based on temperature and weather conditions.
https://weather-wear-zeta.vercel.app
0 stars 0 forks source link

API routes for third party apis #7

Open koyablue opened 1 year ago

koyablue commented 1 year ago

Overview

Implement API routes

Purpose

To hide API keys

API keys are in .env so NEXT_PUBLIC prefix is necessary to use them in the client side. But it means that make the API keys to be exposed to the browsers.

To avoid that, implement API routes and access them from the client side so that keep the API keys secret.

Proposal

Tasks