Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
renamed endpoint to realtime-validations
Dieser Commit ist enthalten in:
Ursprung
176cd7489a
Commit
cfb65245ea
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -17,7 +17,7 @@ export default Component.extend({
|
||||||
// set a function that can be called as often as it need to
|
// set a function that can be called as often as it need to
|
||||||
// from the derived component
|
// from the derived component
|
||||||
this.backendValidate = (params) => {
|
this.backendValidate = (params) => {
|
||||||
return ajax('/realtime_validations', {
|
return ajax('/realtime-validations', {
|
||||||
data: {
|
data: {
|
||||||
validation: this.get('name'),
|
validation: this.get('name'),
|
||||||
authenticity_token: getToken(),
|
authenticity_token: getToken(),
|
||||||
|
|
|
@ -9,7 +9,7 @@ end
|
||||||
Discourse::Application.routes.append do
|
Discourse::Application.routes.append do
|
||||||
mount ::CustomWizard::Engine, at: 'w'
|
mount ::CustomWizard::Engine, at: 'w'
|
||||||
post 'wizard/authorization/callback' => "custom_wizard/authorization#callback"
|
post 'wizard/authorization/callback' => "custom_wizard/authorization#callback"
|
||||||
get 'realtime_validations' => 'custom_wizard/realtime_validations#validate'
|
get 'realtime-validations' => 'custom_wizard/realtime_validations#validate'
|
||||||
|
|
||||||
scope module: 'custom_wizard', constraints: AdminConstraint.new do
|
scope module: 'custom_wizard', constraints: AdminConstraint.new do
|
||||||
get 'admin/wizards' => 'admin#index'
|
get 'admin/wizards' => 'admin#index'
|
||||||
|
|
Laden …
In neuem Issue referenzieren