The call to ajax should look like:
$.ajax({
type: "GET",
url: "/api/rooms",
success: function (rooms) {
}
});
You don’t method chain the success function, it is one of the entries in the dictionary argument.
The call to ajax should look like:
$.ajax({
type: "GET",
url: "/api/rooms",
success: function (rooms) {
}
});
You don’t method chain the success function, it is one of the entries in the dictionary argument.