RestApi back to Rest, added separate RestManager field.

This commit is contained in:
high 2011-09-05 01:17:54 -04:00
parent 595efa4d41
commit 7cfc219794
2 changed files with 7 additions and 17 deletions

View file

@ -21,7 +21,7 @@ namespace TShockAPI {
#region RestMethods
//http://127.0.0.1:8080/HelloWorld/name/{username}?type=status
object usertest(Dictionary<string, string> verbs, IParameterCollection parameters, RequestEventArgs request)
object usertest(RestVerbs verbs, IParameterCollection parameters, RequestEventArgs request)
{
var ret = new Dictionary<string, string>();
var type = parameters["type"];
@ -38,15 +38,5 @@ namespace TShockAPI {
return null;
}
#endregion
public void Start()
{
Rest.Start();
}
public void Dispose()
{
Rest.Dispose();
}
}
}