forked from maiora/backend-api
Compare commits
No commits in common. "7df30d33abd37602dd028f9ea83154a4d3258028" and "32b831c7a563510988f99adce73ae7f06579c5e4" have entirely different histories.
7df30d33ab
...
32b831c7a5
@ -28,7 +28,7 @@ fun Application.module(configFile: Properties) {
|
||||
val secret = config.property("ktor.jwt.secret").getString()
|
||||
configureDatabases(dbUrl, username, password)
|
||||
configureSecurity(secret)
|
||||
configureRouting()
|
||||
configureRouting(dbUrl, username, password)
|
||||
configureSerialization()
|
||||
|
||||
install(CallLogging)
|
||||
|
@ -7,7 +7,7 @@ import io.ktor.server.application.*
|
||||
import io.ktor.server.response.*
|
||||
import io.ktor.server.routing.*
|
||||
|
||||
fun Application.configureRouting() {
|
||||
fun Application.configureRouting(dbUrl : String, username : String, password : String) {
|
||||
routing {
|
||||
get("/") {
|
||||
call.respondText("Hello World!")
|
||||
|
@ -16,7 +16,7 @@ import java.util.*
|
||||
|
||||
|
||||
fun Route.auth(accountsRepository: AccountsRepositoryImpl) {
|
||||
route("/api/auth") {
|
||||
route("/auth") {
|
||||
post() {
|
||||
// Riceve il body della richiesta e lo deserializza in ReceivedResponse
|
||||
val receivedResponse = try {
|
||||
|
Loading…
Reference in New Issue
Block a user