Last change
on this file since 1413ee2 was 77205be, checked in by gjoko kostadinov <gjokokostadinov@…>, 6 months ago |
Add entire code
|
-
Property mode
set to
100755
|
File size:
574 bytes
|
Rev | Line | |
---|
[950fa0d] | 1 | package edu.gjoko.schedlr.controllers.rest;
|
---|
| 2 |
|
---|
| 3 | import lombok.AllArgsConstructor;
|
---|
| 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 | import javax.servlet.http.HttpServletRequest;
|
---|
| 9 |
|
---|
| 10 | @RestController
|
---|
| 11 | @RequestMapping("api/user")
|
---|
| 12 | @AllArgsConstructor
|
---|
[77205be] | 13 | public class UserApi {
|
---|
[950fa0d] | 14 |
|
---|
| 15 | @GetMapping(path = "/me")
|
---|
| 16 | public boolean findAll(HttpServletRequest request) {
|
---|
| 17 | return request.getSession(true).getAttribute("stakeholderId") != null;
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.