|
|
|
@@ -28,6 +28,13 @@ |
|
|
|
RedmineApp::Application.routes.draw do
|
|
|
|
mount Mobile::API => '/api'
|
|
|
|
|
|
|
|
namespace :api do
|
|
|
|
namespace :v2 do
|
|
|
|
resources :users, only: [:index, :create, :show, :update, :destroy]
|
|
|
|
# 原文有 microposts, 我们现在把它注释掉
|
|
|
|
# resources :microposts, only: [:index, :create, :show, :update, :destroy]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# Enable Grack support
|
|
|
|
# mount Trustie::Grack.new, at: '/', constraints: lambda { |request| /[-\/\w\.]+\.git\//.match(request.path_info) }, via: [:get, :post]
|
|
|
|
|
|
|
|
|