sp-dev-fx-webparts/samples/angular-aad-webapi/api/api.securecall/Controllers/ItemController.cs

21 lines
461 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Cors;
namespace api.securecall.Controllers
{
public class ItemController : ApiController
{
[Authorize]
[EnableCors("*","*","*")]
public HttpResponseMessage Get()
{
return Request.CreateResponse(HttpStatusCode.OK, "Successful Call!");
}
}
}