Skip to content
Snippets Groups Projects
Commit 6f065b75 authored by insert's avatar insert
Browse files

Fix CORS for /query

parent 5e59c553
Branches
Tags
No related merge requests found
...@@ -94,7 +94,7 @@ pub fn mount(rocket: Rocket) -> Rocket { ...@@ -94,7 +94,7 @@ pub fn mount(rocket: Rocket) -> Rocket {
user::block_user, user::block_user,
user::unblock_user, user::unblock_user,
user::user_preflight, user::user_preflight,
user::lookup_preflight, user::query_preflight,
user::dms_preflight, user::dms_preflight,
user::dm_preflight, user::dm_preflight,
user::friend_preflight, user::friend_preflight,
......
...@@ -751,8 +751,8 @@ pub fn unblock_user(user: UserRef, target: UserRef) -> Response { ...@@ -751,8 +751,8 @@ pub fn unblock_user(user: UserRef, target: UserRef) -> Response {
pub fn user_preflight(_target: String) -> Response { pub fn user_preflight(_target: String) -> Response {
Response::Result(super::Status::Ok) Response::Result(super::Status::Ok)
} }
#[options("/lookup")] #[options("/query")]
pub fn lookup_preflight() -> Response { pub fn query_preflight() -> Response {
Response::Result(super::Status::Ok) Response::Result(super::Status::Ok)
} }
#[options("/@me/dms")] #[options("/@me/dms")]
......
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