main
Last change
on this file since d8b6c91 was d8b6c91, checked in by 223021 <daniel.ilievski.2@…>, 7 weeks ago |
Initial commit - implementirano registracija i logiranje so Spring Security i JSON Web Token-i vo backend-ot kako i navbar i formi za istoto vo frontend-ot
|
-
Property mode
set to
100644
|
File size:
574 bytes
|
Rev | Line | |
---|
[d8b6c91] | 1 | package mk.ukim.finki.predmeti.internettehnologii.jobvistabackend.controllers;
|
---|
| 2 |
|
---|
| 3 | import lombok.RequiredArgsConstructor;
|
---|
| 4 | import org.springframework.http.ResponseEntity;
|
---|
| 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 | @RestController
|
---|
| 10 | @RequestMapping("/api/admin")
|
---|
| 11 | @RequiredArgsConstructor
|
---|
| 12 | public class AdminController {
|
---|
| 13 |
|
---|
| 14 |
|
---|
| 15 | @GetMapping
|
---|
| 16 | public ResponseEntity<String> sayHello() {
|
---|
| 17 | return ResponseEntity.ok("Hi Admin");
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.