Giter Site home page Giter Site logo

sw0 / aspnetcore-routedebuggermiddleware Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ediwang/edi.routedebugger

1.0 1.0 0.0 103 KB

Show current route info and all routes in an ASP.NET Core application

License: MIT License

C# 55.00% HTML 31.67% CSS 11.41% JavaScript 1.92%

aspnetcore-routedebuggermiddleware's Introduction

ASP.NET Core RouteDebugger Middleware

.NET Core

Show current route info and all routes in an ASP.NET Core application

Background

Inspired by .NET Framework version of the origional RouteDebugger: https://haacked.com/archive/2008/03/13/url-routing-debugger.aspx/

We need something similar in .NET Core, with a few differences:

  • Add route info in response header instead of append them in HTML
  • Use JSON over HTML table for better tooling support
  • Use Middleware to make it .NET Corelish

Usage

Install From NuGet

dotnet add package Edi.RouteDebugger

Adding the Middleware

Recommend use in development environment ONLY

if (env.IsDevelopment())
{
    app.UseRouteDebugger();
}

View Current Route

  • Open any page in your application
  • View response header

View All Routes

  • Access /route-debugger from browser or postman

aspnetcore-routedebuggermiddleware's People

Contributors

ediwang avatar

Stargazers

 avatar

Watchers

James Cloos avatar

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.