feat: bootstrap survey uploader's endpoints

This commit is contained in:
Aravinth Manivannan 2023-10-17 19:09:36 +05:30
parent b6a6705449
commit 52c2c6e598
No known key found for this signature in database
GPG key ID: F8F50389936984FF

View file

@ -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",
}
}