From 9e4311e13e6ce232f8e1375701f4c3dec1514098 Mon Sep 17 00:00:00 2001 From: ZelionD Date: Mon, 22 Jul 2024 18:31:26 -0400 Subject: [PATCH] replace status req type to POST --- gov-portal-db/src/server.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gov-portal-db/src/server.rs b/gov-portal-db/src/server.rs index b626df6..6747a25 100644 --- a/gov-portal-db/src/server.rs +++ b/gov-portal-db/src/server.rs @@ -1,8 +1,4 @@ -use axum::{ - extract::State, - routing::{get, post}, - Json, Router, -}; +use axum::{extract::State, routing::post, Json, Router}; use chrono::{DateTime, Utc}; use ethereum_types::Address; use jsonwebtoken::TokenData; @@ -159,7 +155,7 @@ pub async fn start( let app = Router::new() .route("/token", post(token_route)) - .route("/status", get(status_route)) + .route("/status", post(status_route)) .route("/user", post(user_route)) .route("/users", post(users_route)) .route("/update-user", post(update_user_route))