1
0
Fork 0

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 // 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(),

Datei anzeigen

@ -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'