Permalink
Browse files

some minor updates

  • Loading branch information...
domix committed Oct 22, 2016
1 parent afad024 commit edccef5525857742d6b22c8281ea8923eea4df6e
Showing with 6 additions and 6 deletions.
  1. +2 −2 build.gradle
  2. +4 −4 src/main/groovy/com/domingosuarez/wonky/web/WonkyController.groovy
View
@@ -4,8 +4,8 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.11.3'
classpath 'com.bertramlabs.plugins:coffee-asset-pipeline:2.11.3'
classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.11.4'
classpath 'com.bertramlabs.plugins:coffee-asset-pipeline:2.11.4'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0'
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.1.RELEASE")
@@ -17,14 +17,14 @@
package com.domingosuarez.wonky.web
import static java.util.Optional.of
import static org.springframework.web.bind.annotation.RequestMethod.GET
import static org.springframework.web.bind.annotation.RequestMethod.POST
import com.domingosuarez.wonky.service.SlackService
import groovy.util.logging.Slf4j
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Controller
import org.springframework.ui.ModelMap
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.ResponseBody
@@ -42,7 +42,7 @@ class WonkyController {
@Autowired
SlackService slackService
@RequestMapping(method = GET)
@GetMapping
String index(ModelMap model, HttpServletRequest request) {
String host = getHostname(request)
log.info 'wonky for {}', host
@@ -53,7 +53,7 @@ class WonkyController {
}.orElse('landing')
}
@RequestMapping(method = POST)
@PostMapping
@ResponseBody
Map invite(@RequestBody Map jsonString, HttpServletRequest request) {
String host = getHostname(request)

0 comments on commit edccef5

Please sign in to comment.