Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pissirSmartHome
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alfredo Chissotti
pissirSmartHome
Commits
99ee3792
Commit
99ee3792
authored
2 years ago
by
Elisa Giglio
Browse files
Options
Downloads
Patches
Plain Diff
server
parent
25f44a61
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
WebServer/src/code/Server.java
+7
-7
7 additions, 7 deletions
WebServer/src/code/Server.java
with
7 additions
and
7 deletions
WebServer/src/code/Server.java
+
7
−
7
View file @
99ee3792
...
...
@@ -89,17 +89,17 @@ public class Server {
e.printStackTrace();
}*/
//API del server
server
.
createContext
(
"/api/luci/"
,
new
Luci
());
//post, get [put, delete] {luogo e stato di tutte luci}
server
.
createContext
(
"/api/luci/stato/"
,
new
Luci
());
//put {aggiorna lo stato di una luce}
//
server.createContext("/api/luci/",new Luci());//post, get [put, delete] {luogo e stato di tutte luci}
//
server.createContext("/api/luci/stato/",new Luci());//put {aggiorna lo stato di una luce}
// server.createContext("/api/scenari/",new Scenari());//get {nome e data di tutti gli scenari}
// server.createContext("/api/scenari/attiva/",new Scenari());//put {attiva/disattiva}
// server.createContext("/api/scenari/registra/",new Scenari());//put {registra/termina}
// server.createContext("/api/scenari/salva/",new Scenari());//post {conferma salvataggio, altrimenti cancella dopo timer; ritorna i valori dello scenario}
server
.
createContext
(
"/api/antifurto/"
,
new
Antifurto
());
//get {stato, allarme, attenzione, soglia, sensori}
server
.
createContext
(
"/api/antifurto/stato/"
,
new
Antifurto
());
//get, put {se l'antifurto e' attivo + aggiornamento}
server
.
createContext
(
"/api/antifurto/allarme/"
,
new
Antifurto
());
//get, put {se l'allarme sta suonando + aggiornamento}
server
.
createContext
(
"/api/antifurto/attenzione/"
,
new
Antifurto
());
//put {valore della progress bar}
server
.
createContext
(
"/api/antifurto/soglia/"
,
new
Antifurto
());
//put {valore scelto dall'utente per la soglia}
//
server.createContext("/api/antifurto/",new Antifurto());//get {stato, allarme, attenzione, soglia, sensori}
//
server.createContext("/api/antifurto/stato/",new Antifurto());//get, put {se l'antifurto e' attivo + aggiornamento}
//
server.createContext("/api/antifurto/allarme/",new Antifurto());//get, put {se l'allarme sta suonando + aggiornamento}
//
server.createContext("/api/antifurto/attenzione/",new Antifurto());//put {valore della progress bar}
//
server.createContext("/api/antifurto/soglia/",new Antifurto());//put {valore scelto dall'utente per la soglia}
server
.
createContext
(
"/js/"
,
new
Resources
());
server
.
createContext
(
"/css/"
,
new
Resources
());
server
.
createContext
(
"/res/"
,
new
ImageRes
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment