Rails routes: GET without param :id

后端 未结 7 1016
名媛妹妹
名媛妹妹 2021-01-01 08:56

I\'m developing a REST api based on rails. To use this api, you MUST be logged in. Regarding that, I\'d like to create a method me in my user controller that wi

7条回答
  •  执笔经年
    2021-01-01 09:10

    Maybe I am missing something, but why don't you use:

    get 'me', on: :collection
    

提交回复
热议问题