我正在对我的rails应用程序进行版本控制,我希望能够通过两种不同的路径对用户进行身份验证:
get 'v1/auth/:provider' => 'The omniauth method containing the appropriate callback'
get 'v1/auth/:provider/callback => 'v1/sessions#create'
get 'v2/auth/:provider' => 'The omniauth method containing the appropriate callback'
get 'v2/auth/:provider/callback => 'v2/sessions#create'
是否有可能“破解” prefix_path 属性,以便生成两条路线?