mirror of
https://github.com/github/rails.git
synced 2026-02-15 00:25:00 -05:00
values. update XML-RPC example to work in :layered mode. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
17 lines
446 B
Ruby
17 lines
446 B
Ruby
#
|
|
# example controller implementing both blogger and metaWeblog APIs
|
|
# in a way that should be compatible with clients supporting both/either.
|
|
#
|
|
# test by pointing your client at http://URL/xmlrpc/api
|
|
#
|
|
|
|
require 'meta_weblog_service'
|
|
require 'blogger_service'
|
|
|
|
class XmlrpcController < ApplicationController
|
|
web_service_dispatching_mode :layered
|
|
|
|
web_service :metaWeblog, MetaWeblogService.new
|
|
web_service :blogger, BloggerService.new
|
|
end
|