Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TAM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
TAM
Merge requests
!152
Redeploy 0.0.3
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Redeploy 0.0.3
dev
into
master
Overview
0
Commits
3
Pipelines
2
Changes
1
Merged
Redeploy 0.0.3
Sander van den Oever
requested to merge
dev
into
master
Oct 8, 2019
Overview
0
Commits
3
Pipelines
2
Changes
1
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
9714e7ea
3 commits,
Oct 8, 2019
1 file
+
0
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/main/java/nl/tudelft/ewi/tam/controllers/HomeController.java
+
0
−
12
View file @ 9714e7ea
Edit in single-file editor
Open in Web IDE
Show full file
package
nl.tudelft.ewi.tam.controllers
;
import
nl.tudelft.ewi.tam.beans.UserPrincipal
;
import
nl.tudelft.ewi.tam.exceptions.SentryException
;
import
nl.tudelft.ewi.tam.services.UserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.authentication.AnonymousAuthenticationToken
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
@@ -49,14 +47,4 @@ public class HomeController {
// If the user is not authenticated, then send him to the index page.
return
"index.html"
;
}
/**
* Test method for the Sentry integration.
*
* @throws SentryException to test the connection.
*/
@GetMapping
(
"/trigger-sentry"
)
public
void
triggerSentryException
()
throws
SentryException
{
throw
new
SentryException
(
"This should be logged from TAM."
);
}
}
Loading