phodal/freerice

View on GitHub
web/js/Model/CreateRiceModel.js

Summary

Maintainability
A
0 mins
Test Coverage
"use strict";

define(["backbone", "config"], function(Backbone, config) {
    var CreateRice = Backbone.Model.extend({
        defaults: {
            name: null,
            type: null,
            price: null,
            quantity: null,
            description: null
        },
        url: function() {
            return config.localhost + '/rice/create';
        }
    });

    return CreateRice;
});