GustWeb.API (gust_web v0.1.32)

Router macro that mounts Gust API routes inside a host scope.

Import this module into your Phoenix router and call gust_api/0 inside an API scope. The host router owns the prefix, so the API can be mounted wherever the host application needs it:

import GustWeb.API

scope "/gust/api" do
  pipe_through [:api]

  gust_api()
end

Summary

Functions

gust_api()

(macro)