[katello-devel] Split routes.rb into UI and API

Bryan Kearney bkearney at redhat.com
Wed Jan 18 13:01:17 UTC 2012


On 01/18/2012 04:02 AM, Lukas Zapletal wrote:
> Something like this:
>
> routes.rb
>
> require 'application_routes'
> require 'rest_api_routes'
>
> lib/application_routes.rb
>
> YourApplication::Application.routes.draw do
> # Application related routes
> end
>
> lib/rest_api_routes.rb
>
> YourApplication::Application.routes.draw do
> # REST API related routes
> end
>
> Good idea what you think?
>

If we can do it, that would be cool.

-- bk




More information about the katello-devel mailing list