Last change
on this file was 77205be, checked in by gjoko kostadinov <gjokokostadinov@…>, 11 months ago |
Add entire code
|
-
Property mode
set to
100755
|
File size:
574 bytes
|
Line | |
---|
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
|
---|
13 | public class UserApi {
|
---|
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.