Compare commits

...

2 Commits

Author SHA1 Message Date
0970d3e83b 1.3.3 2023-11-06 21:51:13 +03:00
4e77185a33 cors on toggle 2023-11-06 21:51:02 +03:00
3 changed files with 6 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "red-coder-bh", "name": "red-coder-bh",
"version": "1.3.2", "version": "1.3.3",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "red-coder-bh", "name": "red-coder-bh",
"version": "1.3.2", "version": "1.3.3",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@ijl/mailer": "^1.1.0", "@ijl/mailer": "^1.1.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "red-coder-bh", "name": "red-coder-bh",
"version": "1.3.2", "version": "1.3.3",
"description": "", "description": "",
"main": "src/main.ts", "main": "src/main.ts",
"scripts": { "scripts": {

View File

@ -46,6 +46,9 @@ router.post('/toggle-like', (req, res) => {
charLikes[charId] = { likes: [id] } charLikes[charId] = { likes: [id] }
} }
res.set({
'Access-Control-Allow-Origin': 'http://admin.inno-js.ru',
})
res.send({ res.send({
likes: charLikes, likes: charLikes,
}) })