Skip to content

Instantly share code, notes, and snippets.

@nul800sebastiaan
Created August 25, 2014 11:04
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 nul800sebastiaan/c55db724eaf6c0d73899 to your computer and use it in GitHub Desktop.
Save nul800sebastiaan/c55db724eaf6c0d73899 to your computer and use it in GitHub Desktop.
PluginController
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Umbraco.Web.WebApi;
using Umbraco.Web.Mvc;
namespace My.Controllers
{
[PluginController("MyPluginName")]
public class MyPluginController : UmbracoAuthorizedApiController
{
public string GetSomeData(string input)
{
var output = input;
//Do stuff
return output;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment