Created
December 23, 2014 11:51
-
-
Save CH3COOH/e31aa0f0742f73b4e787 to your computer and use it in GitHub Desktop.
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
namespace Kyuko | |
{ | |
public class RouteConfig | |
{ | |
public static void RegisterRoutes(RouteCollection routes) | |
{ | |
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |
routes.MapRoute( | |
name: "Api1", | |
url: "api/{action}.{format}", | |
defaults: new { controller = "Api", action = "Kyuko", format = "json" } | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment