This repository has been archived on 2018-02-23. You can view files and clone it, but cannot push or open issues or pull requests.
url-shortener/src/main/kotlin/net/cismon/urlshortener/service/AuthService.kt

10 lines
254 B
Kotlin

package net.cismon.urlshortener.service
import net.cismon.urlshortener.dao.AuthDao
import org.springframework.stereotype.Service
@Service
class AuthService(val authDao: AuthDao) {
fun getTokenById(id: Long): String? = authDao.findById(id)?.token
}