diff options
author | Azul <azul@riseup.net> | 2016-05-01 10:55:33 -0300 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-05-18 20:07:41 +0200 |
commit | e05a1b0f5ae40a2aa17976b3009cd563b8e4660a (patch) | |
tree | 77774fd7e70211febaf3a15c6e3b3e7340843c11 /app | |
parent | a1b494e334406660a1f49fb7de9b043493809640 (diff) |
api: allow version bumping - bump to 2
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/api/certs_controller.rb (renamed from app/controllers/v1/certs_controller.rb) | 2 | ||||
-rw-r--r-- | app/controllers/api/configs_controller.rb (renamed from app/controllers/v1/configs_controller.rb) | 2 | ||||
-rw-r--r-- | app/controllers/api/identities_controller.rb (renamed from app/controllers/v1/identities_controller.rb) | 2 | ||||
-rw-r--r-- | app/controllers/api/messages_controller.rb (renamed from app/controllers/v1/messages_controller.rb) | 2 | ||||
-rw-r--r-- | app/controllers/api/services_controller.rb (renamed from app/controllers/v1/services_controller.rb) | 2 | ||||
-rw-r--r-- | app/controllers/api/sessions_controller.rb (renamed from app/controllers/v1/sessions_controller.rb) | 2 | ||||
-rw-r--r-- | app/controllers/api/smtp_certs_controller.rb (renamed from app/controllers/v1/smtp_certs_controller.rb) | 2 | ||||
-rw-r--r-- | app/controllers/api/users_controller.rb (renamed from app/controllers/v1/users_controller.rb) | 2 | ||||
-rw-r--r-- | app/views/api/sessions/new.json.erb (renamed from app/views/v1/sessions/new.json.erb) | 0 |
9 files changed, 8 insertions, 8 deletions
diff --git a/app/controllers/v1/certs_controller.rb b/app/controllers/api/certs_controller.rb index ffa6e35..46a84d3 100644 --- a/app/controllers/v1/certs_controller.rb +++ b/app/controllers/api/certs_controller.rb @@ -1,4 +1,4 @@ -class V1::CertsController < ApiController +class Api::CertsController < ApiController before_filter :require_login, :unless => :anonymous_access_allowed? before_filter :require_enabled diff --git a/app/controllers/v1/configs_controller.rb b/app/controllers/api/configs_controller.rb index f0b284e..55ceb4f 100644 --- a/app/controllers/v1/configs_controller.rb +++ b/app/controllers/api/configs_controller.rb @@ -1,4 +1,4 @@ -class V1::ConfigsController < ApiController +class Api::ConfigsController < ApiController include ControllerExtension::JsonFile before_filter :require_login, :unless => :anonymous_access_allowed? diff --git a/app/controllers/v1/identities_controller.rb b/app/controllers/api/identities_controller.rb index 4efd1f5..ab2ac00 100644 --- a/app/controllers/v1/identities_controller.rb +++ b/app/controllers/api/identities_controller.rb @@ -1,4 +1,4 @@ -module V1 +module Api class IdentitiesController < ApiController before_filter :token_authenticate before_filter :require_monitor diff --git a/app/controllers/v1/messages_controller.rb b/app/controllers/api/messages_controller.rb index c0ca0c7..a69a40a 100644 --- a/app/controllers/v1/messages_controller.rb +++ b/app/controllers/api/messages_controller.rb @@ -1,4 +1,4 @@ -module V1 +module Api class MessagesController < ApiController before_filter :require_login diff --git a/app/controllers/v1/services_controller.rb b/app/controllers/api/services_controller.rb index 523eb44..da2774b 100644 --- a/app/controllers/v1/services_controller.rb +++ b/app/controllers/api/services_controller.rb @@ -1,4 +1,4 @@ -class V1::ServicesController < ApiController +class Api::ServicesController < ApiController before_filter :require_login, :unless => :anonymous_access_allowed? diff --git a/app/controllers/v1/sessions_controller.rb b/app/controllers/api/sessions_controller.rb index a343d9b..c8deb7a 100644 --- a/app/controllers/v1/sessions_controller.rb +++ b/app/controllers/api/sessions_controller.rb @@ -1,4 +1,4 @@ -module V1 +module Api class SessionsController < ApiController before_filter :require_login, only: :destroy diff --git a/app/controllers/v1/smtp_certs_controller.rb b/app/controllers/api/smtp_certs_controller.rb index 5760645..d9eab7d 100644 --- a/app/controllers/v1/smtp_certs_controller.rb +++ b/app/controllers/api/smtp_certs_controller.rb @@ -1,4 +1,4 @@ -class V1::SmtpCertsController < ApiController +class Api::SmtpCertsController < ApiController before_filter :require_login before_filter :require_email_account diff --git a/app/controllers/v1/users_controller.rb b/app/controllers/api/users_controller.rb index 6640d10..e64d21f 100644 --- a/app/controllers/v1/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -1,4 +1,4 @@ -module V1 +module Api class UsersController < ApiController include ControllerExtension::FetchUser diff --git a/app/views/v1/sessions/new.json.erb b/app/views/api/sessions/new.json.erb index 36154b8..36154b8 100644 --- a/app/views/v1/sessions/new.json.erb +++ b/app/views/api/sessions/new.json.erb |