forked from jmug/stoatchat
Fix CORS for /query
This commit is contained in:
@@ -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 {
|
|||||||
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")]
|
||||||
|
|||||||
Reference in New Issue
Block a user