mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-11-24 06:25:46 +00:00
feat: bootstrap survey uploader's endpoints
This commit is contained in:
parent
b6a6705449
commit
52c2c6e598
@ -28,12 +28,14 @@ pub fn services(cfg: &mut ServiceConfig) {
|
|||||||
pub mod routes {
|
pub mod routes {
|
||||||
pub struct Survey {
|
pub struct Survey {
|
||||||
pub download: &'static str,
|
pub download: &'static str,
|
||||||
|
pub secret: &'static str,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Survey {
|
impl Survey {
|
||||||
pub const fn new() -> Self {
|
pub const fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
download: "/api/v1/survey/{survey_id}/get",
|
download: "/api/v1/survey/{survey_id}/get",
|
||||||
|
secret: "/api/v1/survey/{survey_id}/secret",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user