get 404 error while working in browser

Melpelissaw

New Member
I have the following API defined:\[code\]object api_event extends RestHelper { serve { case "events" :: Nil XmlGet _ => <b>static</b> } }\[/code\]Querying from the browser I correctly get the data.[INFO] net.liftweb.util.TimeHelpers - Service request (GET) /events returned 200, took 27 MillisecondsWhile from javascript (JQuery) with the following code:\[code\] $.get('events', function(data) { alert('Load was performed.');} );\[/code\]I get a 404:[INFO] net.liftweb.util.TimeHelpers - Service request (GET) /events returned 404, took 816 MillisecondsQ: Am I badly doing the request with JQuery?
 
Back
Top