feat: bootstrap survey uploader's endpoints
This commit is contained in:
parent
b6a6705449
commit
52c2c6e598
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue