-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
411ee69
commit fdb3817
Showing
128 changed files
with
2,298 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
app/controllers/v1/admin/client_side_renders_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
module V1 | ||
module Admin | ||
class ClientSideRendersController < ApplicationController | ||
def index | ||
allow_index | ||
end | ||
|
||
def show | ||
allow_show | ||
end | ||
|
||
def create | ||
forbidden | ||
end | ||
|
||
def update | ||
forbidden | ||
end | ||
|
||
def destroy | ||
forbidden | ||
end | ||
|
||
private | ||
|
||
def model_class | ||
ClientSideRender | ||
end | ||
|
||
def serializer_class | ||
V1::Admin::ClientSideRenderSerializer | ||
end | ||
|
||
def creatable_attributes | ||
%[] | ||
# %i[ | ||
# name | ||
# company | ||
# mobile | ||
# message | ||
# purpose | ||
# source | ||
# ip | ||
# ip_region | ||
# ip_city | ||
# ] | ||
end | ||
|
||
def creatable_relationships | ||
%[] | ||
# %i[ | ||
# country | ||
# ip_country | ||
# ] | ||
end | ||
|
||
def permitted_filters | ||
%[] | ||
# %i[ | ||
# main_group_id | ||
# sub_group_id | ||
# ] | ||
end | ||
|
||
def permanent_filters | ||
{} | ||
# { | ||
# public: true | ||
# } | ||
end | ||
|
||
def permitted_includes | ||
%[] | ||
# %i[ | ||
# related_articles | ||
# related_products | ||
# related_products.main_group | ||
# translations | ||
# ] | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
module V1 | ||
module Admin | ||
class PageViewsController < ApplicationController | ||
def index | ||
allow_index | ||
end | ||
|
||
def show | ||
allow_show | ||
end | ||
|
||
def create | ||
forbidden | ||
end | ||
|
||
def update | ||
forbidden | ||
end | ||
|
||
def destroy | ||
forbidden | ||
end | ||
|
||
private | ||
|
||
def model_class | ||
PageView | ||
end | ||
|
||
def serializer_class | ||
V1::Admin::PageViewSerializer | ||
end | ||
|
||
def creatable_attributes | ||
%[] | ||
# %i[ | ||
# name | ||
# company | ||
# mobile | ||
# message | ||
# purpose | ||
# source | ||
# ip | ||
# ip_region | ||
# ip_city | ||
# ] | ||
end | ||
|
||
def creatable_relationships | ||
%[] | ||
# %i[ | ||
# country | ||
# ip_country | ||
# ] | ||
end | ||
|
||
def permitted_filters | ||
%[] | ||
# %i[ | ||
# main_group_id | ||
# sub_group_id | ||
# ] | ||
end | ||
|
||
def permanent_filters | ||
{} | ||
# { | ||
# public: true | ||
# } | ||
end | ||
|
||
def permitted_includes | ||
%[] | ||
# %i[ | ||
# related_articles | ||
# related_products | ||
# related_products.main_group | ||
# translations | ||
# ] | ||
end | ||
end | ||
end | ||
end |
84 changes: 84 additions & 0 deletions
84
app/controllers/v1/admin/server_side_renders_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
module V1 | ||
module Admin | ||
class ServerSideRendersController < ApplicationController | ||
def index | ||
allow_index | ||
end | ||
|
||
def show | ||
allow_show | ||
end | ||
|
||
def create | ||
forbidden | ||
end | ||
|
||
def update | ||
forbidden | ||
end | ||
|
||
def destroy | ||
forbidden | ||
end | ||
|
||
private | ||
|
||
def model_class | ||
ServerSideRender | ||
end | ||
|
||
def serializer_class | ||
V1::Admin::ServerSideRenderSerializer | ||
end | ||
|
||
def creatable_attributes | ||
%[] | ||
# %i[ | ||
# name | ||
# company | ||
# mobile | ||
# message | ||
# purpose | ||
# source | ||
# ip | ||
# ip_region | ||
# ip_city | ||
# ] | ||
end | ||
|
||
def creatable_relationships | ||
%[] | ||
# %i[ | ||
# country | ||
# ip_country | ||
# ] | ||
end | ||
|
||
def permitted_filters | ||
%[] | ||
# %i[ | ||
# main_group_id | ||
# sub_group_id | ||
# ] | ||
end | ||
|
||
def permanent_filters | ||
{} | ||
# { | ||
# public: true | ||
# } | ||
end | ||
|
||
def permitted_includes | ||
%[] | ||
# %i[ | ||
# related_articles | ||
# related_products | ||
# related_products.main_group | ||
# translations | ||
# ] | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
module V1 | ||
module Admin | ||
class VisitsController < ApplicationController | ||
def index | ||
allow_index | ||
end | ||
|
||
def show | ||
allow_show | ||
end | ||
|
||
def create | ||
forbidden | ||
end | ||
|
||
def update | ||
forbidden | ||
end | ||
|
||
def destroy | ||
forbidden | ||
end | ||
|
||
private | ||
|
||
def model_class | ||
Visit | ||
end | ||
|
||
def serializer_class | ||
V1::Admin::VisitSerializer | ||
end | ||
|
||
def creatable_attributes | ||
%[] | ||
# %i[ | ||
# name | ||
# company | ||
# mobile | ||
# message | ||
# purpose | ||
# source | ||
# ip | ||
# ip_region | ||
# ip_city | ||
# ] | ||
end | ||
|
||
def creatable_relationships | ||
%[] | ||
# %i[ | ||
# country | ||
# ip_country | ||
# ] | ||
end | ||
|
||
def permitted_filters | ||
%[] | ||
# %i[ | ||
# main_group_id | ||
# sub_group_id | ||
# ] | ||
end | ||
|
||
def permanent_filters | ||
{} | ||
# { | ||
# public: true | ||
# } | ||
end | ||
|
||
def permitted_includes | ||
%[] | ||
# %i[ | ||
# related_articles | ||
# related_products | ||
# related_products.main_group | ||
# translations | ||
# ] | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.