switch to post
This commit is contained in:
parent
d94f8f0308
commit
958791952c
3 changed files with 3 additions and 3 deletions
|
@ -2270,7 +2270,7 @@ Metamaps.Realtime = {
|
|||
invited: Metamaps.Active.Mapper.id,
|
||||
inviter: userid
|
||||
});
|
||||
$.get('/maps/' + Metamaps.Active.Map.id + '/events/conversation');
|
||||
$.post('/maps/' + Metamaps.Active.Map.id + '/events/conversation');
|
||||
self.joinCall();
|
||||
Metamaps.GlobalUI.clearNotify();
|
||||
},
|
||||
|
|
|
@ -102,7 +102,7 @@ class MapsController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
# GET maps/:id/events/:event
|
||||
# POST maps/:id/events/:event
|
||||
def events
|
||||
map = Map.find(params[:id])
|
||||
authorize map
|
||||
|
|
|
@ -37,7 +37,7 @@ Metamaps::Application.routes.draw do
|
|||
|
||||
resources :maps, except: [:index, :new, :edit]
|
||||
get 'maps/:id/export', to: 'maps#export'
|
||||
get 'maps/:id/events/:event', to: 'maps#events'
|
||||
post 'maps/:id/events/:event', to: 'maps#events'
|
||||
get 'maps/:id/contains', to: 'maps#contains', as: :contains
|
||||
post 'maps/:id/upload_screenshot', to: 'maps#screenshot', as: :screenshot
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue