-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Ipfs.Server): show the IPFS webui for the node
- Loading branch information
1 parent
76e0dee
commit 2808695
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
|
||
} | ||
} |