Commit 6ad14369 authored by Xiyang Lu's avatar Xiyang Lu

add create new address in controller

parent 84039c52
......@@ -24,4 +24,11 @@ public class StudentAddressController {
return ResponseEntity.ok(studentAddress);
}
@PostMapping("/studentaddress")
public StudentAddress createStudentAddress(@RequestBody StudentAddress studentAddress){
return studentAddressService.createStudentAddress(studentAddress);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment