You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://api.color.pizza/names/v1/ <- current codebase (vanilla JS)
&
https://api.color.pizza/palettes/v1/ <- new API built around Koa
I want to avoid having to add palettes/v1/ as a prefix to every route. Is it possible to solve that nicely using the "host" feature?
Also how would I still be able to be using it on localhost?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am running different API's on the same URL. (With separate codebases)
for now my "color-names" api is running here: https://api.color.pizza/v1/
In the future I want to have:
I want to avoid having to add
palettes/v1/
as a prefix to every route. Is it possible to solve that nicely using the "host" feature?Also how would I still be able to be using it on localhost?
Beta Was this translation helpful? Give feedback.
All reactions