mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 13:32:25 -05:00 
			
		
		
		
	change panel routes
This commit is contained in:
		
					parent
					
						
							
								1884cdba48
							
						
					
				
			
			
				commit
				
					
						2f1ca03eb5
					
				
			
		
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -202,10 +202,10 @@ func (m *Module) Route(s router.Router) error { | |||
| 		c.Redirect(http.StatusMovedPermanently, "/admin") | ||||
| 	}) | ||||
| 
 | ||||
| 	s.AttachHandler(http.MethodGet, "/admin", m.UserPanelHandler) | ||||
| 	s.AttachHandler(http.MethodGet, "/user", m.UserPanelHandler) | ||||
| 	// redirect /settings/ to /settings | ||||
| 	s.AttachHandler(http.MethodGet, "/settings/", func(c *gin.Context) { | ||||
| 		c.Redirect(http.StatusMovedPermanently, "/settings") | ||||
| 	s.AttachHandler(http.MethodGet, "/user/", func(c *gin.Context) { | ||||
| 		c.Redirect(http.StatusMovedPermanently, "/user") | ||||
| 	}) | ||||
| 
 | ||||
| 	// serve front-page | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue