Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Пронин Евгений
/
RfidServerFake
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit bb71bdfb
authored
2021-02-22 12:54:48 +0300
by
Пронин Евгений
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
cors
1 parent
611bc9bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
app.js
app.js
View file @
bb71bdf
...
...
@@ -45,7 +45,9 @@ function makeDevice(cards) {
}
}
app
.
get
(
"/getRfid"
,
cors
(),
(
req
,
res
)
=>
{
app
.
use
(
cors
())
app
.
get
(
"/getRfid"
,
(
req
,
res
)
=>
{
var
msg
=
JSON
.
stringify
(
state
,
null
,
'\t'
);
if
(
req
.
query
.
callback
!==
undefined
)
{
msg
=
req
.
query
.
callback
+
"("
+
msg
+
");"
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment