2014-02-17 09:26:25 +08:00
|
|
|
require_dependency 'site_serializer'
|
|
|
|
|
|
|
|
class SiteController < ApplicationController
|
|
|
|
|
2014-02-22 01:31:54 +08:00
|
|
|
def index
|
2014-02-17 09:26:25 +08:00
|
|
|
@site = Site.new(guardian)
|
|
|
|
render_serialized(@site, SiteSerializer)
|
|
|
|
end
|
2014-02-22 01:31:54 +08:00
|
|
|
|
|
|
|
end
|