From ce49a72e01a4603d2fd7318a07eddede746ac839 Mon Sep 17 00:00:00 2001 From: Zin Bo Thit Date: Mon, 3 Aug 2026 14:37:51 +0630 Subject: [PATCH] Fix OTP API routes --- config/routes.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 5347c9c..cf4593d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -25,10 +25,8 @@ Rails.application.routes.draw do get "sms/received", to: "sms#received" # OTP endpoints - namespace :otp do - post "send", to: "otp#send_otp" - post "verify", to: "otp#verify" - end + post "otp/send", to: "otp#send_otp" + post "otp/verify", to: "otp#verify" # Admin endpoints namespace :admin do