Merge pull request #48 from dalbodeule/develop

add Session flows
This commit is contained in:
JinU Choi
2024-08-08 16:23:45 +09:00
committed by GitHub

View File

@@ -52,8 +52,7 @@ val server = embeddedServer(Netty, port = 8080, ) {
allowMethod(HttpMethod.Patch) allowMethod(HttpMethod.Patch)
allowMethod(HttpMethod.Delete) allowMethod(HttpMethod.Delete)
allowMethod(HttpMethod.Get) allowMethod(HttpMethod.Get)
allowHost("http://localhost:8080") anyHost()
allowHost(dotenv["FRONTEND"])
} }
install(Sessions) { install(Sessions) {
cookie<UserSession>("user_session", storage = SessionStorageMemory()) {} cookie<UserSession>("user_session", storage = SessionStorageMemory()) {}