token-validator: split rawHandler with responseHandler
This commit is contained in:
parent
8d55ecc3af
commit
09552ab516
3 changed files with 28 additions and 31 deletions
|
@ -28,7 +28,7 @@ func init() {
|
|||
func(httprouter.Params, []byte) (interface{}, error) {
|
||||
return getStudentKeys()
|
||||
}))
|
||||
router.POST("/sshkeys", rawHandler(receiveKey))
|
||||
router.POST("/sshkeys", rawHandler(responseHandler(receiveKey)))
|
||||
router.GET("/sshkeys/authorizedkeys", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||
dumpAuthorizedKeysFile(w)
|
||||
})
|
||||
|
|
Reference in a new issue