0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 02:50:28 +01:00

renamed endpoint to realtime-validations

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-02-11 19:24:32 +05:30
Ursprung 176cd7489a
Commit cfb65245ea
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -17,7 +17,7 @@ export default Component.extend({
// set a function that can be called as often as it need to
// from the derived component
this.backendValidate = (params) => {
return ajax('/realtime_validations', {
return ajax('/realtime-validations', {
data: {
validation: this.get('name'),
authenticity_token: getToken(),

Datei anzeigen

@ -9,7 +9,7 @@ end
Discourse::Application.routes.append do
mount ::CustomWizard::Engine, at: 'w'
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
get 'admin/wizards' => 'admin#index'