source: src/main/java/edu/gjoko/schedlr/controllers/rest/UserController.java@ 950fa0d

Last change on this file since 950fa0d was 950fa0d, checked in by Gjoko Kostadinov <gjoko.kostadinov@…>, 14 months ago

Periodic update

  • Property mode set to 100644
File size: 646 bytes
Line 
1package edu.gjoko.schedlr.controllers.rest;
2
3import edu.gjoko.schedlr.entity.Business;
4import lombok.AllArgsConstructor;
5import org.springframework.web.bind.annotation.GetMapping;
6import org.springframework.web.bind.annotation.RequestMapping;
7import org.springframework.web.bind.annotation.RestController;
8
9import javax.servlet.http.HttpServletRequest;
10import java.util.List;
11
12@RestController
13@RequestMapping("api/user")
14@AllArgsConstructor
15public 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.