Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • moshe 1 post 71 karma points
    May 24, 2020 @ 11:18
    moshe
    0

    how to create a custom route for API

    Im trying to create a route like than Umbraco/api/Data/GetData/0eb37e59-aaa0-4783-af35-d7b0302d5722

    but it dose not work

    this is my code:

    DataController : UmbracoApiController {

    [Route("Umbraco/api/Data/GetData/{Token}")] public void GetData(Guid Token) { //Do Bla } }

Please Sign in or register to post replies

Write your reply to:

Draft