refactor: repositories allocated to separate package
This commit is contained in:
parent
e6036e2f22
commit
9b2e1afee0
3 changed files with 4 additions and 6 deletions
|
@ -1,11 +1,7 @@
|
||||||
package su.coolpeople.plugins
|
package su.coolpeople.plugins
|
||||||
|
|
||||||
import io.ktor.server.application.*
|
import io.ktor.server.application.*
|
||||||
import io.ktor.server.response.*
|
|
||||||
import io.ktor.server.routing.*
|
import io.ktor.server.routing.*
|
||||||
import io.ktor.server.plugins.BadRequestException
|
|
||||||
import io.ktor.http.HttpStatusCode
|
|
||||||
import su.coolpeople.models.ProfileRepository
|
|
||||||
import su.coolpeople.routes.profile
|
import su.coolpeople.routes.profile
|
||||||
|
|
||||||
fun Application.configureRouting() {
|
fun Application.configureRouting() {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package su.coolpeople.models
|
package su.coolpeople.repositories
|
||||||
|
|
||||||
|
import su.coolpeople.models.Contact
|
||||||
|
import su.coolpeople.models.Profile
|
||||||
import su.coolpeople.models.enums.ContactType
|
import su.coolpeople.models.enums.ContactType
|
||||||
import su.coolpeople.models.geo.ApproximateLocation
|
import su.coolpeople.models.geo.ApproximateLocation
|
||||||
|
|
|
@ -5,7 +5,7 @@ import io.ktor.server.application.*
|
||||||
import io.ktor.server.plugins.*
|
import io.ktor.server.plugins.*
|
||||||
import io.ktor.server.response.*
|
import io.ktor.server.response.*
|
||||||
import io.ktor.server.routing.*
|
import io.ktor.server.routing.*
|
||||||
import su.coolpeople.models.ProfileRepository
|
import su.coolpeople.repositories.ProfileRepository
|
||||||
|
|
||||||
fun Routing.profile() {
|
fun Routing.profile() {
|
||||||
route("/api/profile") {
|
route("/api/profile") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue