From 8c8b494049d328d305527d7ed10ff63836ddf983 Mon Sep 17 00:00:00 2001
From: L4168 <L4168@student.jamk.fi>
Date: Wed, 19 Jun 2019 09:35:29 +0300
Subject: [PATCH] fixed route url

---
 src/mapmarkers/mapmarkers.controller.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mapmarkers/mapmarkers.controller.ts b/src/mapmarkers/mapmarkers.controller.ts
index 84ecba5..fef9716 100644
--- a/src/mapmarkers/mapmarkers.controller.ts
+++ b/src/mapmarkers/mapmarkers.controller.ts
@@ -10,7 +10,7 @@ export class MapMarkersController {
     constructor(private mapmarkerservice: MapMarkerService){}
 
     // Insert figure location, needs "authorization" header with valid Bearer token and content-type json
-    @Put('insertLocation')
+    @Put('insert-location')
     @UseGuards(new AuthGuard())
     async insertLocation(@User('id') person, @Body() data: MapMarkerDTO): Promise<string>{
         try {
-- 
GitLab