Git Product home page Git Product logo

Comments (2)

 avatar commented on August 15, 2024

no, currently its not included, but its easy to do.
all you need to do is to attach the current_store to the api object.

you can override every function of the spree_core or this gem with
class_eval.

example:

lets say the spree-core has a method foo you need to override
class ApiController
def foo
end
end

so you go under

app/controllers/api_controller_decorator.rb

Spree::ApiController.class_eavl do
#you reopen the class and can override anything or add new stuff

before_filter do
  #do some needed stuff
end

def foo
#override foo with your stuff
end

def yourfoo
#implement addition functions
end
end

its simple, just give it a try

cheers

Am 11.04.2014 22:06, schrieb Gonzalo Moreno:

I'm creating an app via spree_api, and the question, it's api
supported by multi-domain?

Regards !


Reply to this email directly or view it on GitHub
#92.

from spree-multi-domain.

ronzalo avatar ronzalo commented on August 15, 2024

@fu-media Yes, it works

from spree-multi-domain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.