Skip to content

Commit

Permalink
Make FE connect to OpenResty reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
axeltlarsson committed Nov 17, 2019
1 parent 12d8f0f commit caf814b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/Recipe.elm
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ previewsDecoder =

url : List QueryParameter -> String
url queryParams =
Url.Builder.crossOrigin "http://localhost:3000" [ "recipes" ] queryParams
Url.Builder.crossOrigin "http://localhost:8080/rest" [ "recipes" ] queryParams


fetch : Slug -> (Result ServerError (Recipe Full) -> msg) -> Cmd msg
Expand Down Expand Up @@ -177,7 +177,7 @@ search toMsg query =
[ Url.Builder.string "search_query" query ]

searchUrl queryParams =
Url.Builder.crossOrigin "http://localhost:3000" [ "rpc", "search" ] queryParams
Url.Builder.crossOrigin "http://localhost:8080/rest" [ "rpc", "search" ] queryParams
in
Http.get
{ url = searchUrl params
Expand Down

0 comments on commit caf814b

Please sign in to comment.