server/lib/boardwise_web/controllers/react_controller.ex

12 lines
447 B
Elixir
Raw Normal View History

2023-12-01 19:56:14 +00:00
defmodule BoardWiseWeb.ReactController do
use BoardWiseWeb, :controller
def mount(conn, _params) do
2023-12-01 19:56:14 +00:00
# Set `layout` to false to bypass the app layout. The goal here is to
# eventually migrate away from the React app as is defined in favor of
# Phoenix related components. Exposing this mount point is the first step
# in migrating away from Vercel into a self-hosted solution.
render(conn, :mount, layout: false)
2023-12-01 19:56:14 +00:00
end
end