main #9

Closed
student-20690 wants to merge 26 commits from (deleted):main into main
Showing only changes of commit 0ea199cd6b - Show all commits

View File

@@ -1,10 +1,23 @@
package com.example.nto.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.net.http.HttpResponse;
/**
* TODO: ДОРАБОТАТЬ в рамках задания
* =================================
* МОЖНО: Добавлять методы, аннотации, зависимости
* НЕЛЬЗЯ: Изменять название класса и пакета
*/
@RestController
@RequestMapping("code")
public class EmployeeController {
@GetMapping("/auth/{id}")
public int isAuth(@PathVariable int id){
return id;
}
}