The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

APIController.cs 812B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Web;
  6. using Teknik.Areas.Upload;
  7. using Teknik.Controllers;
  8. using Teknik.Utilities;
  9. using Teknik.Models;
  10. using Teknik.Attributes;
  11. using Microsoft.AspNetCore.Authorization;
  12. using Microsoft.Extensions.Logging;
  13. using Teknik.Configuration;
  14. using Teknik.Data;
  15. using Microsoft.AspNetCore.Mvc;
  16. using Teknik.Logging;
  17. namespace Teknik.Areas.API.Controllers
  18. {
  19. [Area("API")]
  20. public class APIController : DefaultController
  21. {
  22. public APIController(ILogger<Logger> logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { }
  23. [AllowAnonymous]
  24. public IActionResult Index()
  25. {
  26. return Redirect(Url.SubRouteUrl("help", "Help.API"));
  27. }
  28. }
  29. }