c8bdcc0ec3 
							
						 
					 
					
						
						
							
							refactor(server/utils): create reusable utilities for various story-related functions  
						
						... 
						
						
						
						`bodyHandler` takes a request body and returns the chapter content as a string
`formChapterTransform` serializes a chapter-like object supplied in a request body to an actual
	proper chapter object
`getBucket` retrieves the story content gridfs bucket
`replaceGridFS` either creates or updates (deletes + reuploads) a gridfs file 
						
						
					 
					
						2023-10-03 00:42:24 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							1338e87238 
							
						 
					 
					
						
						
							
							feat(api/utils): add isadmin check  
						
						
						
						
					 
					
						2023-10-03 00:33:54 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							c9574dfc29 
							
						 
					 
					
						
						
							
							refactor(server/utils): move listQuerier to separate database helper folder  
						
						
						
						
					 
					
						2023-10-03 00:30:22 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							09187fa5ac 
							
						 
					 
					
						
						
							
							feat(api): add captcha verify utility  
						
						
						
						
					 
					
						2023-10-03 00:26:51 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							2b0d478ca7 
							
						 
					 
					
						
						
							
							feat(api): add isLoggedIn utility function  
						
						... 
						
						
						
						for api routes which require authentication 
						
						
					 
					
						2023-10-02 16:20:13 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							cfb1f69ffb 
							
						 
					 
					
						
						
							
							refactor(server/middleware): move common logic for maintaining a database connection to another file  
						
						
						
						
					 
					
						2023-10-02 16:08:12 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							ff4b94d913 
							
						 
					 
					
						
						
							
							feat(api):  ✏️  add story api endpoints  
						
						... 
						
						
						
						(update/create/delete) 
						
						
					 
					
						2023-10-02 15:44:55 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							fea42915fb 
							
						 
					 
					
						
						
							
							refactor(api): update story query helper  
						
						... 
						
						
						
						it now filters out stories with nonexistent authors 
						
						
					 
					
						2023-09-26 14:23:11 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							740d8a9f2c 
							
						 
					 
					
						
						
							
							refactor(api): create story query helper  
						
						... 
						
						
						
						this is for retrieving + populating stories from a database with a specified query 
						
						
					 
					
						2023-09-25 19:31:30 -04:00