Skip to content

Commit

Permalink
chore: add version of the api
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomoaccursi committed May 23, 2023
1 parent 1b5c2d4 commit bc61123
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SurgicalBookingDataReceiver {
* Starts ktor embedded server.
*/
fun start() {
embeddedServer(Netty, port = 3002, module = this::dispatcher).start(true)
embeddedServer(Netty, port = 3000, module = this::dispatcher).start(true)
}

/**
Expand All @@ -49,7 +49,7 @@ class SurgicalBookingDataReceiver {
private fun receiveSurgeryBooking(app: Application) {
with(app) {
routing {
post("/surgeryBooking") {
post("api/v1/surgeryBooking") {
val booking = SurgeryBookingJsonDeserializer().deserialize(call.receiveText())
if (DigitalTwinSurgeryBookingManager().createSurgeryBookingDigitalTwin(booking)) {
call.respond(HttpStatusCode.OK)
Expand Down

0 comments on commit bc61123

Please sign in to comment.