added URI extraction and checking

This commit is contained in:
Derek Meer 2018-08-01 20:09:50 -07:00
parent 0fa7122d63
commit 24fa42dcae

View file

@ -19,6 +19,13 @@ type URIToUIDResponse struct {
func URIToUID(req *http.Request, cfg config.Dendrite) util.JSONResponse {
// TODO: Implement
homeserver := cfg.Matrix.ServerName
uri := req.URL.Query().Get("uri")
if uri == "" {
return util.JSONResponse{
Code: http.StatusOK,
JSON: nil,
}
}
return util.JSONResponse{
Code: http.StatusOK,
JSON: nil,