Add comments
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user