/modules/mod_oauth/dispatch/dispatch

http://github.com/zotonic/zotonic · #! · 11 lines · 9 code · 2 blank · 0 comment · 0 complexity · 91f909cfdda7082ef5a1ead9bd98c266 MD5 · raw file

  1. %% -*- mode: erlang -*-
  2. %% Dispatch rules for OAuth
  3. [
  4. {oauth_request_token, ["oauth", "request_token"], controller_oauth_request_token, []},
  5. {oauth_access_token, ["oauth", "access_token"], controller_oauth_access_token, []},
  6. {oauth_authorize, ["oauth", "authorize"], controller_oauth_authorize, []},
  7. {oauth_finish, ["oauth", "authorize", "finished"], controller_template, [ {template, "oauth_authorize_finished.tpl"} ]},
  8. {admin_oauth, ["admin", "oauth", "apps"], controller_oauth_apps, [{ssl,true}]}
  9. ].