CrowdHailer / raxx

Interface for HTTP webservers, frameworks and clients
https://hexdocs.pm/raxx
Apache License 2.0
402 stars 29 forks source link

consider a Raxx.Browser #84

Closed CrowdHailer closed 6 years ago

CrowdHailer commented 6 years ago

purpose to provide sensible defaults for security etc. This might be better as some framework


defmodule MyApp.Browser do
  use Raxx.Browser
end
defmodule MyApp.API do
  use Raxx.API
end
defmodule MyApp do
   use Raxx.Router, [
      {%{path: [api | _]}, MyApp.API},
      {%{path: _}, MyApp.Browser}
    ]
end
CrowdHailer commented 6 years ago

https://github.com/CrowdHailer/raxx/commit/a6e33f5dbd9b9344753b43c5d4eb4cbf838bdddf