diff --git a/app/api/handlers/oauth.py b/app/api/handlers/oauth.py index 9a56d1f..27e121d 100644 --- a/app/api/handlers/oauth.py +++ b/app/api/handlers/oauth.py @@ -107,7 +107,7 @@ class OAuthOpTimerHandler(BaseHandler): return {'ops': events, 'doc_time': cached_doc.time_retrieved, 'cache_until': cached_doc.cached_until, 'current_time': datetime.utcnow() } -class CharacterHandler(BaseHandler): +class OAuthCharacterHandler(BaseHandler): allowed_methods = ('GET') fields = ('id', 'name', ('corporation', ('id', 'name', ('alliance', ('id', 'name')))), 'corporation_date', 'balance', 'total_sp', 'security_status', 'director', 'skillset') diff --git a/app/api/urls.py b/app/api/urls.py index 89c938e..3c41903 100755 --- a/app/api/urls.py +++ b/app/api/urls.py @@ -54,9 +54,14 @@ urlpatterns += patterns('api.views', ) oauth_optimer_resource = Resource(handler=OAuthOpTimerHandler, **oauth) +oauth_eveapi_resource = Resource(handler=OAuthOpTimerHandler, **oauth) +oauth_chars_resource = Resource(handler=OAuthCharacterHandler, **oauth) # API urlpatterns += patterns('', url(r'^oauth/optimer/$', oauth_optimer_resource), + url(r'^oauth/eveapi/$', oauth_eveapi_resource), + url(r'^oauth/character/$', oauth_chars_resource), + )