Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LLT-5831] teliod cgi api #1041

Open
wants to merge 1 commit into
base: LLT-5865_cgi_skeleton
Choose a base branch
from
Open

Conversation

packgron
Copy link
Collaborator

@packgron packgron commented Dec 18, 2024

Problem

REST API to be used by static web to controll teliod daemon

Solution

☑️ Definition of Done checklist

  • Commit history is clean (requirements)
  • README.md is updated
  • Functionality is covered by unit or integration tests

@packgron packgron requested a review from a team as a code owner December 18, 2024 18:33
@packgron packgron changed the base branch from main to LLT-5865_cgi_skeleton December 18, 2024 18:33
@packgron packgron force-pushed the LLT-5865_cgi_skeleton branch 2 times, most recently from 38a4f90 to 61b4b22 Compare December 19, 2024 13:28
Original work done in #1012.
This is restructure and reabase on common base.
Comment on lines +3 to +15
#[cfg(feature = "qnap")]
mod consts {
use super::*;

pub const APP_DIR: &str = "/share/CACHEDEV1_DATA/.qpkg/NordSecurityMeshnet";
}

#[cfg(not(feature = "qnap"))]
mod consts {
pub const APP_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/target/debug");
}

use consts::*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not directly do this? readability?

Suggested change
#[cfg(feature = "qnap")]
mod consts {
use super::*;
pub const APP_DIR: &str = "/share/CACHEDEV1_DATA/.qpkg/NordSecurityMeshnet";
}
#[cfg(not(feature = "qnap"))]
mod consts {
pub const APP_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/target/debug");
}
use consts::*;
#[cfg(feature = "qnap")]
pub const APP_DIR: &str = "/share/CACHEDEV1_DATA/.qpkg/NordSecurityMeshnet";
#[cfg(not(feature = "qnap"))]
pub const APP_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/target/debug");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants