|
|
@ -12,9 +12,11 @@ import { auth } from "../middleware/auth"; |
|
|
|
*/ |
|
|
|
export default function register(factory: RouteRegisterFactory<MiddlewareMethod<void>, Application>, app: Application) { |
|
|
|
|
|
|
|
/** |
|
|
|
* Verify the auth token |
|
|
|
*/ |
|
|
|
factory.get("/auth/verify", [auth], (request, reply) => { |
|
|
|
console.log("Authentication has been verified"); |
|
|
|
reply.send({ status: "Success" }); |
|
|
|
respond(reply, Status.Ok); |
|
|
|
}); |
|
|
|
|
|
|
|
// Login ---------------------------------------------------------------------------------------
|
|
|
|