Giter Site home page Giter Site logo

Comments (7)

TheConnMan avatar TheConnMan commented on September 24, 2024

How about an /info endpoint which returns JSON, including the version?

from docker-hub-rss.

mortee avatar mortee commented on September 24, 2024

Currently I can only try this on my mobile, but the /info endpoint returns this:

Cannot GET /info

Also, I don't know if the web framework is supposed to automatically serve it, but I couldn't find anything like that in the d-h-rss code itself.

In the meantime, I worked around it by extracting the version from package.json, but it seems to be a bit hackish...

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on September 24, 2024

Sorry, I meant either you or I would implement that as a new endpoint. The endpoint doesn't exist yet.

from docker-hub-rss.

mortee avatar mortee commented on September 24, 2024

Sure, it would make sense.

from docker-hub-rss.

mortee avatar mortee commented on September 24, 2024

Ha ha, sorry about the confusion yesterday. I was on mobile, seeing just the notification emails about your comments, where the sender was displayed as your real name (as opposed to your nickname shown here), so initially I didn't make the connection that this was the author of d-h-rss 😃

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on September 24, 2024

Ha, no worries. Check out #49. Is there anything else you can think of which may be helpful in an info endpoint?

from docker-hub-rss.

mortee avatar mortee commented on September 24, 2024

This went over my head again. No, I guess that's pretty much it. Thanks for the quick reaction! 😃

from docker-hub-rss.

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.