Skip to content

A simple endpoint router that allows packages to capture incoming requests on specific paths.

License

Notifications You must be signed in to change notification settings

AdamRiddick/endpoint-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Endpoint Router

Endpoint Router is a simple endpoint router design to capture incoming requests to registered paths and redirect them to an endpoint handler, which response with an endpoint result.

The aim is to allow packages to utilise endpoints without controller implementations.

Easy To Use

Currently not available through nuget

  1. Add Services. services.AddEndpointRouter();
  2. Add Endpoint Router to the application. app.UseEndpointRouter();
  3. Create an IEndpointHandler which returns an IEndpointResult, and register it against a path; services.AddEndpointHandler<DemoEndpointHandler>("/demo");
  4. Any requests to the registered path (/demo) will now be handled by your endpoint handler.

Todo

  • Add to nuget
  • Write some tests

##License

MIT

Free Software, Hell Yeah!

About

A simple endpoint router that allows packages to capture incoming requests on specific paths.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages