Delete useless file

This commit is contained in:
Merel Steenbergen
2019-03-17 17:57:18 +01:00
parent ba98b30776
commit 061a6fc957

View File

@@ -1,26 +0,0 @@
package greenify.server.rest;
import greenify.common.UserDTO;
import greenify.server.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class ActivityController {
@Autowired
UserService userService;
@RequestMapping("/addActivity")
public UserDTO registerUser(@RequestParam(value = "name") String name,
@RequestParam(value = "password") String password) {
return userService.registerUser(name, password);
}
@RequestMapping("/login")
public UserDTO login(@RequestParam(value = "name") String name,
@RequestParam(value = "password") String password) {
return userService.login(name, password);
}
}