Add comments

This commit is contained in:
2026-03-25 21:19:16 +01:00
parent 2054fa307a
commit 800d384d8d
3 changed files with 44 additions and 10 deletions
@@ -22,7 +22,10 @@ namespace skydiveLogs_api.Controllers
#region Public Methods
// GET: api/Tunnel
/// <summary>
/// Retrieves a list of all tunnels.
/// </summary>
/// <returns>A collection of TunnelResp objects containing all tunnels.</returns>
[HttpGet]
[EnableCors]
public IEnumerable<TunnelResp> Get()
@@ -31,7 +34,11 @@ namespace skydiveLogs_api.Controllers
return _mapper.Map<IEnumerable<TunnelResp>>(result);
}
// GET: api/Tunnel/5
/// <summary>
/// Retrieves a tunnel by its ID.
/// </summary>
/// <param name="id">The tunnel ID to retrieve.</param>
/// <returns>A TunnelResp object containing the tunnel details.</returns>
[HttpGet("{id}")]
[EnableCors]
public TunnelResp Get(int id)