Skip to content

Commit

Permalink
Merge pull request #10 from chourmovs/beta
Browse files Browse the repository at this point in the history
10
  • Loading branch information
chourmovs authored Sep 1, 2024
2 parents ec732f2 + 5c214ef commit 2f52e30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
5 changes: 4 additions & 1 deletion webapp/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ app.get('/find-directory', (req, res) => {
});
});




// Route pour monter le partage NAS (lecture seule)
app.get('/mount-nas', (req, res) => {
const networkPath = req.query.path; // Récupère le chemin du dossier NAS
Expand All @@ -44,7 +47,7 @@ app.get('/mount-nas', (req, res) => {
});

// Route pour lancer blissify init après le montage
app.get('/run-blissify', (req, res) => {
app.get('/start-analysis', (req, res) => {
// Utiliser le chemin monté
const command = `blissify init /mnt/Musique`;

Expand Down
13 changes: 4 additions & 9 deletions webapp/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,14 @@
<body>
<h1>Blissify Webapp</h1>

<!-- Bouton pour rechercher la bibliothèque musicale -->
<form id="network-path-form">
<label for="network-path">Entrez le chemin du dossier réseau :</label>
<input type="text" id="network-path" name="network-path" placeholder="i.e. \\192.168.1.xxx/Music" required>
<button type="submit">Search</button>
<input type="text" id="network-path" name="network-path" placeholder="smb://192.168.1.xxx/Musique" required>
<button type="submit">Monter et Lancer</button>
</form>

<!-- <button onclick="searchMusic()">Rechercher Bibliothèque Musicale</button>
<pre id="music-output"></pre> -->

<!-- Bouton pour lancer l'analyse -->
<button onclick="startAnalysis()">Lancer l'Analyse</button>
<pre id="analysis-output"></pre>
<button id="start-analysis" style="display:none;">Démarrer l'Analyse</button>
<div id="result"></div>

<!-- Bouton pour chercher l'instance Volumio -->
<button onclick="searchVolumio()">Chercher Volumio</button>
Expand Down

0 comments on commit 2f52e30

Please sign in to comment.