Skip to content

Commit

Permalink
Return an empty string for / on markdig webapi
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Nov 10, 2017
1 parent 523582e commit 6408705
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Markdig.WebApp/ApiController.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
using System;
using System;
using System.Text;
using Microsoft.AspNetCore.Mvc;

namespace Markdig.WebApp
{
public class ApiController : Controller
{
[HttpGet()]
[Route("")]
public string Empty()
{
return string.Empty;
}

// GET api/to_html?text=xxx&extensions=advanced
[Route("api/to_html")]
[HttpGet()]
Expand Down

0 comments on commit 6408705

Please sign in to comment.