Skip to content
Snippets Groups Projects
Commit 146e5742 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

wip

parent fdf32e34
No related branches found
No related tags found
No related merge requests found
class Api::Osuny::Communication::Websites::PostsController < Api::Osuny::ApplicationController
skip_before_action :verify_authenticity_token, only: [:create]
skip_before_action :verify_authenticity_token, only: [:import]
def create
def import
verify_app_token
create_post
import_blocks
......
......@@ -6,7 +6,7 @@ namespace :api do
namespace :communication do
get 'websites' => 'websites#index'
namespace :websites do
post ':website_id/posts' => 'posts#create'
post ':website_id/posts/import' => 'posts#import'
end
end
get 'server' => 'server#index'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment