Last change
on this file since 950fa0d was 950fa0d, checked in by Gjoko Kostadinov <gjoko.kostadinov@…>, 16 months ago |
Periodic update
|
-
Property mode
set to
100644
|
File size:
646 bytes
|
Line | |
---|
1 | package edu.gjoko.schedlr.controllers.rest;
|
---|
2 |
|
---|
3 | import edu.gjoko.schedlr.entity.Business;
|
---|
4 | import lombok.AllArgsConstructor;
|
---|
5 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
6 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
7 | import org.springframework.web.bind.annotation.RestController;
|
---|
8 |
|
---|
9 | import javax.servlet.http.HttpServletRequest;
|
---|
10 | import java.util.List;
|
---|
11 |
|
---|
12 | @RestController
|
---|
13 | @RequestMapping("api/user")
|
---|
14 | @AllArgsConstructor
|
---|
15 | public class UserController {
|
---|
16 |
|
---|
17 | @GetMapping(path = "/me")
|
---|
18 | public boolean findAll(HttpServletRequest request) {
|
---|
19 | return request.getSession(true).getAttribute("stakeholderId") != null;
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.