mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Register notification router
This commit is contained in:
		@@ -562,6 +562,8 @@ func runWeb(ctx *cli.Context) error {
 | 
				
			|||||||
	})
 | 
						})
 | 
				
			||||||
	// ***** END: Repository *****
 | 
						// ***** END: Repository *****
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						m.Get("/notifications", reqSignIn, user.Notifications)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	m.Group("/api", func() {
 | 
						m.Group("/api", func() {
 | 
				
			||||||
		apiv1.RegisterRoutes(m)
 | 
							apiv1.RegisterRoutes(m)
 | 
				
			||||||
	}, ignSignIn)
 | 
						}, ignSignIn)
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								routers/user/notification.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								routers/user/notification.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					package user
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"code.gitea.io/gitea/modules/context"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Notifications is the notifications page
 | 
				
			||||||
 | 
					func Notifications(c *context.Context) {
 | 
				
			||||||
 | 
						panic("Not implemented")
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user