typesafehub / sbt-lagom-bundle

Other
0 stars 5 forks source link

Revert "Service paths for Lagom are required to be preserved" #7

Closed huntc closed 8 years ago

huntc commented 8 years ago

This reverts commit 61eb8c548c1a1dd2df4a0644dfe6fce85a8b0148.

The reason I'm reverting is that the first path component is always the name of the service when generating service uris here. That name has nothing to do with the path generated by Lagom, and so leveraging ConductR to strip it is fine.

As an example:

    return named("friendservice").with(
        restCall(Method.POST, "/api/users", createUser())
      ).withAutoAcl(true);

...the service only expects /api/users, not /friendservice/api/users.

I actually confirmed this behaviour within the sandbox.