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.

123456789101112131415161718192021222324252627
  1. using System.Collections.Generic;
  2. using Luticate2.Utils.Controllers;
  3. using Luticate2.Utils.Dbo.Basic;
  4. using Microsoft.AspNetCore.Mvc;
  5. using Microsoft.Extensions.Options;
  6. using WebApiWebSem.Business;
  7. using WebApiWebSem.Dbo.Feed;
  8. namespace WebApiWebSem.Controllers
  9. {
  10. [Route("feed")]
  11. public class FeedController : LuController
  12. {
  13. private readonly FeedBusiness _feedBusiness;
  14. public FeedController(IOptions<LuUtilsOptionsDbo> luUtilsOptionsDbo, FeedBusiness feedBusiness) : base(luUtilsOptionsDbo)
  15. {
  16. _feedBusiness = feedBusiness;
  17. }
  18. [HttpGet("")]
  19. public LuApiWrapperDbo<IList<FeedDbo>> Get()
  20. {
  21. return Handle(_feedBusiness.Get());
  22. }
  23. }
  24. }