DEV: Clean up of code
This commit is contained in:
parent
7d3b94bf59
commit
43f3d34c46
3 changed files with 6 additions and 20 deletions
|
@ -2,22 +2,8 @@
|
|||
|
||||
require "scimitar"
|
||||
|
||||
# DiscourseScimPlugin::Engine.routes.draw do
|
||||
# get "/list" => "scim#index"
|
||||
# end
|
||||
|
||||
# Discourse::Application.routes.draw { mount ::DiscourseScimPlugin::Engine, at: "/scim" }
|
||||
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: '/'
|
||||
|
||||
get 'Users', to: 'users#index'
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module DiscourseScimPlugin
|
||||
module DiscourseScim
|
||||
class Engine < ::Rails::Engine
|
||||
engine_name PLUGIN_NAME
|
||||
isolate_namespace DiscourseScimPlugin
|
||||
isolate_namespace DiscourseScim
|
||||
end
|
||||
end
|
|
@ -1,10 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# name: discourse-scim-plugin
|
||||
# name: discourse-scim
|
||||
# about: A plugin to add SCIM endpoints to discourse
|
||||
# version: 0.0.1
|
||||
# authors: Peter Bouda
|
||||
# url: https://github.com/pbouda/discourse-scim-plugin
|
||||
# url: https://forge.libre.sh/libre.sh/discourse-scim
|
||||
|
||||
gem 'marcel', '1.0.0', {require: false }
|
||||
gem 'activestorage', '7.1.4', {require: false }
|
||||
|
@ -32,10 +32,10 @@ add_api_key_scope(
|
|||
},
|
||||
)
|
||||
|
||||
module ::DiscourseScimPlugin
|
||||
module ::DiscourseScim
|
||||
PLUGIN_NAME = "scim"
|
||||
|
||||
require_relative "lib/discourse_scim_plugin/engine"
|
||||
require_relative "lib/discourse_scim/engine"
|
||||
end
|
||||
|
||||
after_initialize do
|
||||
|
|
Loading…
Reference in a new issue