package be.jeffcheasey88.peeratcode.routes.users; import java.util.regex.Matcher; import be.jeffcheasey88.peeratcode.framework.HttpReader; import be.jeffcheasey88.peeratcode.framework.HttpWriter; import be.jeffcheasey88.peeratcode.framework.Response; import be.jeffcheasey88.peeratcode.framework.Route; import be.jeffcheasey88.peeratcode.framework.User; public class ForgotPassword implements Response{ @Route(path = "^/user/fpw$") public void exec(Matcher matcher, User user, HttpReader reader, HttpWriter writer) throws Exception { if(user != null){ writer.response(403, "Access-Control-Allow-Origin: *"); return; } } }