summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-09-24 16:47:18 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-09-24 16:47:53 +0200
commit923afd71d4bf1c0854deae96d3af7fd6d268646e (patch)
tree883bb776040b0c8ae3b98b83efaeee0fba4561a4 /Bugzilla/WebService/Server
parent89e65535c55fb20c916e2ed9492aaae265f5c5de (diff)
downloadbugzilla-923afd71d4bf1c0854deae96d3af7fd6d268646e.tar.gz
bugzilla-923afd71d4bf1c0854deae96d3af7fd6d268646e.tar.xz
Bug 1204683: Add whoami endpoint
Diffstat (limited to 'Bugzilla/WebService/Server')
-rw-r--r--Bugzilla/WebService/Server/REST/Resources/User.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server/REST/Resources/User.pm b/Bugzilla/WebService/Server/REST/Resources/User.pm
index b9ecc21ba..7d494064d 100644
--- a/Bugzilla/WebService/Server/REST/Resources/User.pm
+++ b/Bugzilla/WebService/Server/REST/Resources/User.pm
@@ -67,6 +67,11 @@ sub _rest_resources {
}
},
},
+ qr{^/whoami$}, {
+ GET => {
+ method => 'whoami'
+ }
+ }
];
return $rest_resources;
}