Skip to content

Instantly share code, notes, and snippets.

@SimonDoy
Created May 12, 2016 21:12
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 SimonDoy/4192427356563a56011af1a285f41d01 to your computer and use it in GitHub Desktop.
Save SimonDoy/4192427356563a56011af1a285f41d01 to your computer and use it in GitHub Desktop.
Configuration Controllers with initial implementation, no authentication
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace Itsp365.InvoiceFormApp.Api.Api.Controllers
{
public class ConfigurationController : ApiController
{
public IDictionary<string,string> Get()
{
var configuration = new Dictionary<string, string>();
configuration.Add("SharePointUrl", "https://ithinksharepointltd.sharepoint.com/sites/dev");
return configuration;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment