current-consumer step 3 tweak path

This commit is contained in:
simonredfern 2025-12-27 22:25:09 +01:00
parent 157d7d8c14
commit 28f0a13ffc

View File

@ -555,7 +555,7 @@ trait APIMethods600 {
implementedInApiVersion,
nameOf(getCurrentConsumer),
"GET",
"/current-consumer",
"/consumers/current",
"Get Current Consumer",
s"""Returns the consumer_id of the current authenticated consumer.
|
@ -580,7 +580,7 @@ trait APIMethods600 {
)
lazy val getCurrentConsumer: OBPEndpoint = {
case "current-consumer" :: Nil JsonGet _ => {
case "consumers" :: "current" :: Nil JsonGet _ => {
cc => {
implicit val ec = EndpointContext(Some(cc))
for {