Files
2012-02-21 01:15:00 -05:00

1 line
1.1 KiB
JSON

[{"user_id": 13961, "stars": [], "topic_id": 46879, "date_created": 1319175588.697078, "message": "Hi, I am writing the front-end with Middleman, and get data from the back-end with AJAX. I want to know what is a good practice to specify the AJAX API URLs for both development and build?", "group_id": 10410, "id": 2398465}, {"user_id": 7586, "stars": [], "topic_id": 46879, "date_created": 1319214782.1836801, "message": "Sorry that there aren't any docs, basically it just lets you proxy requests from an external API into you site during development.", "group_id": 10410, "id": 2401414}, {"user_id": 7586, "stars": [], "topic_id": 46879, "date_created": 1319214751.094316, "message": "Normally, you'd expect the frontend and backend to run on the same server once you deploy, so your API paths would be something like \"/api/v1/users.json\" Obviously this URL isn't available during development, so you'll need to fake it. We're working on documenting and supporting an extension to do this called \"middleman-proxy.\" Simply install that gem and add some code to your config: https://gist.github.com/1304271", "group_id": 10410, "id": 2401411}]