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.

29 lines
569 B

11 months ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Apewer.Web
  5. {
  6. /// <summary></summary>
  7. [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
  8. public sealed class RouteAttribute : Attribute
  9. {
  10. string _path;
  11. /// <summary></summary>
  12. public string Path { get => _path; }
  13. /// <summary></summary>
  14. public RouteAttribute() { }
  15. /// <summary></summary>
  16. public RouteAttribute(string path)
  17. {
  18. _path = path;
  19. }
  20. }
  21. }