| 
									
										
										
										
											2019-08-31 20:51:14 -07:00
										 |  |  | # Routes | 
					
						
							|  |  |  | # This file defines all application routes (Higher priority routes first) | 
					
						
							|  |  |  | # ~~~~ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Home page | 
					
						
							|  |  |  | # serveAsset action requires a path string | 
					
						
							|  |  |  | GET           /                                                               controllers.Application.index(path="index.html") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | GET           /admin                                                          controllers.Application.healthcheck() | 
					
						
							|  |  |  | GET           /config                                                         controllers.Application.appConfig() | 
					
						
							| 
									
										
										
										
											2021-01-22 15:44:00 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-11 13:38:35 -08:00
										 |  |  | # Routes used exclusively by the React application. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Authentication in React | 
					
						
							| 
									
										
										
										
											2021-08-20 10:58:07 -07:00
										 |  |  | GET           /authenticate                                                   controllers.AuthenticationController.authenticate() | 
					
						
							|  |  |  | POST          /logIn                                                          controllers.AuthenticationController.logIn() | 
					
						
							|  |  |  | GET           /callback/:protocol                                             controllers.SsoCallbackController.handleCallback(protocol: String) | 
					
						
							|  |  |  | POST          /callback/:protocol                                             controllers.SsoCallbackController.handleCallback(protocol: String) | 
					
						
							| 
									
										
										
										
											2021-08-20 07:42:18 -07:00
										 |  |  | GET           /logOut                                                         controllers.CentralLogoutController.executeLogout() | 
					
						
							| 
									
										
										
										
											2021-03-11 13:38:35 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-20 10:58:07 -07:00
										 |  |  | # Proxies API requests to the metadata service api | 
					
						
							|  |  |  | GET           /api/*path                                                      controllers.Application.proxy(path) | 
					
						
							|  |  |  | POST          /api/*path                                                      controllers.Application.proxy(path) | 
					
						
							| 
									
										
										
										
											2019-09-05 10:53:26 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-31 20:51:14 -07:00
										 |  |  | # Map static resources from the /public folder to the /assets URL path | 
					
						
							|  |  |  | GET           /assets/*file                                                   controllers.Assets.at(path="/public", file) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-11 15:41:42 -07:00
										 |  |  | # Analytics route | 
					
						
							| 
									
										
										
										
											2021-08-20 10:58:07 -07:00
										 |  |  | POST          /track                                                          controllers.TrackingController.track() | 
					
						
							| 
									
										
										
										
											2021-05-11 15:41:42 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-20 10:58:07 -07:00
										 |  |  | # Wildcard route accepts any routes and delegates to serveAsset which in turn serves the React Bundle | 
					
						
							| 
									
										
										
										
											2019-08-31 20:51:14 -07:00
										 |  |  | GET           /*path                                                          controllers.Application.index(path) |