discourse-scim/config/routes.rb

36 lines
1.1 KiB
Ruby
Raw Normal View History

2024-10-06 17:39:16 +00:00
# frozen_string_literal: true
require "scimitar"
# DiscourseScimPlugin::Engine.routes.draw do
# get "/list" => "scim#index"
# end
# Discourse::Application.routes.draw { mount ::DiscourseScimPlugin::Engine, at: "/scim" }
2024-10-07 10:22:23 +00:00
Discourse::Application.routes.draw {
namespace :scim_v2 do
# DiscourseScimPlugin::Engine.routes.draw do
# get 'Users', to: 'users#index'
# get 'Users/:id', to: 'users#show'
# post 'Users', to: 'users#create'
# put 'Users/:id', to: 'users#replace'
# patch 'Users/:id', to: 'users#update'
# delete 'Users/:id', to: 'users#destroy'
# end
mount Scimitar::Engine, at: '/'
2024-10-06 17:39:16 +00:00
get 'Users', to: 'users#index'
get 'Users/:id', to: 'users#show'
post 'Users', to: 'users#create'
put 'Users/:id', to: 'users#replace'
patch 'Users/:id', to: 'users#update'
delete 'Users/:id', to: 'users#destroy'
2024-10-07 10:22:23 +00:00
get 'Groups', to: 'groups#index'
get 'Groups/:id', to: 'groups#show'
post 'Groups', to: 'groups#create'
patch 'Groups/:id', to: 'groups#update'
2024-10-06 17:39:16 +00:00
end
2024-10-07 10:22:23 +00:00
}