From 4b6b42a0067e30a4c0d35e2f827621f6d8b71c44 Mon Sep 17 00:00:00 2001 From: "krwittmer@outlook.com" Date: Wed, 8 Aug 2018 14:41:34 -0500 Subject: [PATCH 1/2] Added ConfigInfo controller --- .../Controllers/ConfigInfoController.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/MobileAppService/MyDrivingService/Controllers/ConfigInfoController.cs diff --git a/src/MobileAppService/MyDrivingService/Controllers/ConfigInfoController.cs b/src/MobileAppService/MyDrivingService/Controllers/ConfigInfoController.cs new file mode 100644 index 00000000..2f94ac55 --- /dev/null +++ b/src/MobileAppService/MyDrivingService/Controllers/ConfigInfoController.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; +using System.Configuration; +using System.Web.Http; + +namespace MyDrivingService.Controllers +{ + public class ConfigInfoController : ApiController + { + // TODO: Get/return configuration details (Azure, DB, etc.) + + // GET: api/ConfigInfo + public IEnumerable Get() + { + // TODO: Implement first! + return new string[] { "Valid Issuer", ConfigurationManager.AppSettings["ValidIssuer"] }; + } + + // GET: api/ConfigInfo/5 + public string Get(int id) + { + return "value"; + } + } +} From 32436038e555b40f96522e189d49663de0d22a2b Mon Sep 17 00:00:00 2001 From: Kevin Wittmer Date: Wed, 8 Aug 2018 14:53:53 -0500 Subject: [PATCH 2/2] Delete ConfigInfoController.cs --- .../Controllers/ConfigInfoController.cs | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 src/MobileAppService/MyDrivingService/Controllers/ConfigInfoController.cs diff --git a/src/MobileAppService/MyDrivingService/Controllers/ConfigInfoController.cs b/src/MobileAppService/MyDrivingService/Controllers/ConfigInfoController.cs deleted file mode 100644 index 2f94ac55..00000000 --- a/src/MobileAppService/MyDrivingService/Controllers/ConfigInfoController.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System.Collections.Generic; -using System.Configuration; -using System.Web.Http; - -namespace MyDrivingService.Controllers -{ - public class ConfigInfoController : ApiController - { - // TODO: Get/return configuration details (Azure, DB, etc.) - - // GET: api/ConfigInfo - public IEnumerable Get() - { - // TODO: Implement first! - return new string[] { "Valid Issuer", ConfigurationManager.AppSettings["ValidIssuer"] }; - } - - // GET: api/ConfigInfo/5 - public string Get(int id) - { - return "value"; - } - } -}