mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-10-01 13:46:56 -05:00
Added game sync request route and stub handler.
This commit is contained in:
@@ -102,6 +102,11 @@ namespace PkmnFoundations.GTS
|
||||
pathInfo = "/pokemon/validate";
|
||||
return VirtualPathUtility.ToAbsolute("~/pkvldtprod.ashx");
|
||||
}
|
||||
else if (split.Length > 1 && split[1] == "dsio" && split[2] == "gw")
|
||||
{
|
||||
pathInfo = "/dsio/gw";
|
||||
return VirtualPathUtility.ToAbsolute("~/pgl.ashx");
|
||||
}
|
||||
else return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,6 +87,7 @@
|
||||
<Content Include="pkvldtprod.ashx" />
|
||||
<Content Include="pokemondpds_web.ashx" />
|
||||
<Content Include="masters\MasterPage.master" />
|
||||
<Content Include="pgl.ashx" />
|
||||
<None Include="Properties\PublishProfiles\Public.pubxml" />
|
||||
<Content Include="Web.config">
|
||||
<SubType>Designer</SubType>
|
||||
@@ -107,6 +108,9 @@
|
||||
<Compile Include="masters\MasterPage.master.designer.cs">
|
||||
<DependentUpon>MasterPage.master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="pgl.ashx.cs">
|
||||
<DependentUpon>pgl.ashx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="pkvldtprod.ashx.cs">
|
||||
<DependentUpon>pkvldtprod.ashx</DependentUpon>
|
||||
</Compile>
|
||||
|
||||
1
gts/pgl.ashx
Normal file
1
gts/pgl.ashx
Normal file
@@ -0,0 +1 @@
|
||||
<%@ WebHandler Language="C#" CodeBehind="pgl.ashx.cs" Class="PkmnFoundations.GTS.pgl" %>
|
||||
28
gts/pgl.ashx.cs
Normal file
28
gts/pgl.ashx.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace PkmnFoundations.GTS
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for pgl
|
||||
/// </summary>
|
||||
public class pgl : IHttpHandler
|
||||
{
|
||||
|
||||
public void ProcessRequest(HttpContext context)
|
||||
{
|
||||
context.Response.ContentType = "text/plain";
|
||||
context.Response.Write("Hello (dream) World");
|
||||
}
|
||||
|
||||
public bool IsReusable
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user