null+****@clear*****
null+****@clear*****
2012年 6月 21日 (木) 17:08:22 JST
SHIMODA Hiroshi 2012-06-21 17:08:22 +0900 (Thu, 21 Jun 2012) New Revision: 4dd25708ed410b044c524e0a04de23f9d5d63202 https://github.com/groonga/gcs/commit/4dd25708ed410b044c524e0a04de23f9d5d63202 Log: Generate endpoints as subdomains of the given domain Modified files: lib/api/2011-02-01/configuration.js Modified: lib/api/2011-02-01/configuration.js (+3 -2) =================================================================== --- lib/api/2011-02-01/configuration.js 2012-06-21 17:07:26 +0900 (e79413f) +++ lib/api/2011-02-01/configuration.js 2012-06-21 17:08:22 +0900 (fd637d0) @@ -84,14 +84,15 @@ handlers.CreateDomain = function(database, request, response) { }) .next(function(data) { var host = getBaseDomain(request.headers.host); + host = host ? '.' + host : '' ; response.contentType('application/xml'); response.send(createCreateDomainResponse({ domainName: domain.name, domainId: FAKE_DOMAIN_ID, searchEndpoint: 'http://search-' + domain.name + '-' + FAKE_DOMAIN_ID + - '/' + exports.version + '/search', + host + '/' + exports.version + '/search', documentsEndpoint: 'http://doc-' + domain.name + '-' + FAKE_DOMAIN_ID + - '/' + exports.version + '/documents', + host + '/' + exports.version + '/documents', created: true, searchableDocumentsCount: 0, searchInstanceCount: 0, -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Descargar