com.osomapps.pt.auth.AuthUserResource   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 9
c 1
b 0
f 0
dl 0
loc 14
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A findOne() 0 3 1
A AuthUserResource(AuthUserService) 0 3 1
1
package com.osomapps.pt.auth;
2
3
import org.springframework.beans.factory.annotation.Autowired;
4
import org.springframework.web.bind.annotation.GetMapping;
5
import org.springframework.web.bind.annotation.RequestMapping;
6
import org.springframework.web.bind.annotation.RestController;
7
8
@RestController
9
@RequestMapping("api/v1/auth/user")
10
class AuthUserResource {
11
12
    private final AuthUserService authUserService;
13
14
    @Autowired
15
    AuthUserResource(AuthUserService authUserService) {
16
        this.authUserService = authUserService;
17
    }
18
19
    @GetMapping
20
    AuthUserResponseDTO findOne() {
21
        return authUserService.findOne();
22
    }
23
}
24