Share information between website and API
<p>I have a REST API providing a service to my users. And I also have a website to allow my users to get some information and register to use the API.</p>

<p>So far, both my website and my API are totally decoupled (2 separate app with 2 separate databases). However, now I need to share information between them. </p>

<p>I think of 2 solutions :</p>

<p>1) Exposing the data I need to share from app_1 through a small API used by app_2.</p>

<p>2) Merging the 2 apps and more precisely the 2 databases.</p>

<p>But I can't decide which could be the best solution. </p>

<p>Thanks</p>