jscas-server
Version:
An implementation of Apereo's CAS protocol
17 lines (12 loc) • 321 B
JavaScript
const fp = require('fastify-plugin')
function successHandler (req, reply) {
reply
.type('text/html')
.send(this.jscasPlugins.theme.noService())
}
function successRoutePlugin (fastify, options, next) {
fastify.get('/success', successHandler)
next()
}
module.exports = fp(successRoutePlugin)