Skip to content

Instantly share code, notes, and snippets.

@CH3COOH
Created December 23, 2014 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CH3COOH/e31aa0f0742f73b4e787 to your computer and use it in GitHub Desktop.
Save CH3COOH/e31aa0f0742f73b4e787 to your computer and use it in GitHub Desktop.
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