mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-31 10:37:04 -04:00 
			
		
		
		
	- Updated route task for 'recently-added'. - Refactored GetRecentlyAdded task instead of creating new API task. This way is more efficient and prevents bloat. - Adding pageSize to UserParams.cs (got lost in PRs).
		
			
				
	
	
		
			15 lines
		
	
	
		
			352 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			352 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace API.Helpers
 | |
| {
 | |
|     public class UserParams
 | |
|     {
 | |
|         private const int MaxPageSize = 50;
 | |
|         public int PageNumber { get; set; } = 1;
 | |
|         private int _pageSize = 30;
 | |
| 
 | |
|         public int PageSize
 | |
|         {
 | |
|             get => _pageSize;
 | |
|             set => _pageSize = (value > MaxPageSize) ? MaxPageSize : value;
 | |
|         }
 | |
|     }
 | |
| } |