scoped cors

This commit is contained in:
realaravinth
2021-04-12 10:25:52 +05:30
parent bbf182a918
commit c776092023
4 changed files with 38 additions and 15 deletions

View File

@@ -38,7 +38,8 @@ pub struct GetConfigPayload {
// API keys are mcaptcha actor names
#[post("/api/v1/mcaptcha/pow/config")]
#[post("/config")]
//#[post("/pow/config")]
pub async fn get_config(
payload: web::Json<GetConfigPayload>,
data: web::Data<Data>,
@@ -149,7 +150,7 @@ mod tests {
const NAME: &str = "powusrworks";
const PASSWORD: &str = "testingpas";
const EMAIL: &str = "randomuser@a.com";
const GET_URL: &str = "/api/v1/mcaptcha/pow/config";
const GET_URL: &str = "/api/v1/pow/config";
// const UPDATE_URL: &str = "/api/v1/mcaptcha/domain/token/duration/update";
{