@@ -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()
@@ -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 {
@@ -0,0 +1,4 @@
+<body>
+ <h1>АПИ для тестового проекта WS-Cinema</h1>
+</body>