Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
milestone-2
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
Releases
Package Registry
Container 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
Kasper Lauge Madsen
milestone-2
Commits
fde3d791
Commit
fde3d791
authored
5 years ago
by
larsH
Browse files
Options
Downloads
Patches
Plain Diff
begun LED 2 and 22
parent
9d3c45b0
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Swagger improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/src/controllers/actuator.controller.ts
+2
-1
2 additions, 1 deletion
server/src/controllers/actuator.controller.ts
with
2 additions
and
1 deletion
server/src/controllers/actuator.controller.ts
+
2
−
1
View file @
fde3d791
...
@@ -8,7 +8,8 @@ export function setLED(req: Request, res: Response, next: NextFunction) {
...
@@ -8,7 +8,8 @@ export function setLED(req: Request, res: Response, next: NextFunction) {
const
id
:
string
=
req
.
params
.
id
;
const
id
:
string
=
req
.
params
.
id
;
const
value
=
req
.
body
[
"
value
"
];
const
value
=
req
.
body
[
"
value
"
];
if
(
id
!=
"
4
"
){
if
(
id
!=
"
4
"
||
id
!=
"
2
"
||
id
!=
"
22
"
){
res
.
status
(
401
).
json
({
"
msg
"
:
"
LED does not exist
"
})
res
.
status
(
401
).
json
({
"
msg
"
:
"
LED does not exist
"
})
}
}
if
(
value
==
null
||
!
(
value
===
0
||
value
===
1
)){
if
(
value
==
null
||
!
(
value
===
0
||
value
===
1
)){
...
...
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