Skip to content

A few suggestions #29

@singhsays

Description

@singhsays

Hey Doug,

Recently came across sleepy, great work on the micro framework!

A few minor suggestions.

  • Instead of embedding the *NotSupported types, why not just define the default implementation of methods directly on resource e.g http://play.golang.org/p/gXF2iFohYz
  • instead of binding to a port, maybe optionally add a method to accept a ServeMux or mux subrouter and bind routes to it. That way, sleepy can be used for a subset of all routes in an app and others non REST endpoints can be bound to the main router, leaving the flexibility of starting and running the server outside sleepy.

Happy to send a PR if you see any value in these suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions