Skip to content

Commit

Permalink
feat(Ipfs.Server): show the IPFS webui for the node
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed May 28, 2019
1 parent 76e0dee commit 2808695
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions IpfsServer/WebUIController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace Ipfs.Server
{
/// <summary>
/// Simple controller to present the IPFS WebUI
/// </summary>
[Route("webui")]
public class WebUIController : Controller
{
/// <summary>
/// Handles HTTP Get "/webui"
/// </summary>
[HttpGet]
public ActionResult Get()
{
return Redirect("/ipfs/QmfQkD8pBSBCBxWEwFSu4XaDVSWK6bjnNuaWZjMyQbyDub/index.html");
}

}
}

0 comments on commit 2808695

Please sign in to comment.