class LootTrackerController {

	@RequestMapping(method = RequestMethod.POST)
	public void storeLootRecord(HttpServletRequest request, HttpServletResponse response, @RequestBody LootRecord record) throws IOException
	{
		SessionEntry e = auth.handle(request, response);
		if (e == null)
		{
			response.setStatus(HttpStatusCodes.STATUS_CODE_UNAUTHORIZED);
			return;
		}

		service.store(record, e.getUser());
		response.setStatus(HttpStatusCodes.STATUS_CODE_OK);
	}

}