Евгений Колесников il y a 3 ans
Parent
commit
01f0400649
3 fichiers modifiés avec 10 ajouts et 1 suppressions
  1. 1 1
      articles/animation.md
  2. 5 0
      cinema/index.js
  3. 4 0
      cinema/swagger/index.html

+ 1 - 1
articles/animation.md

@@ -59,7 +59,7 @@ val animationX = ObjectAnimator.ofFloat(card, "scaleX", 1F)
 val animationY = ObjectAnimator.ofFloat(card, "scaleY", 1F)
 val set = AnimatorSet()
 set.play(animationX)
-        .with(animationY)
+    .with(animationY)
 set.duration = DURATION
 set.interpolator = DecelerateInterpolator()
 set.start()

+ 5 - 0
cinema/index.js

@@ -91,6 +91,11 @@ function findUserByToken(token) {
   return null
 }
 
+app.get('/', (req, res) => {
+  res.sendFile(
+    __dirname + '/swagger/index.html')
+})
+
 app.options('/auth/register', cors())
 app.post('/auth/register', cors(), (req,res)=>{
   try {

+ 4 - 0
cinema/swagger/index.html

@@ -0,0 +1,4 @@
+<body>
+  <h1>АПИ для тестового проекта WS-Cinema</h1>
+  
+</body>