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