Skip to content

Commit

Permalink
hapi 17 compatible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mickelindahl committed Jan 4, 2018
1 parent b843717 commit 24a5457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Hapi = require( 'hapi' );
const server = new Hapi.Server( { port: 3000 } );

server.register( {
register: require( 'hapi-redirect' ),
plugin: require( 'hapi-redirect' ),
options: {
status_code: "401"
redirect: "/login"
Expand Down

0 comments on commit 24a5457

Please sign in to comment.