All Downloads are FREE. Search and download functionalities are using the official Maven repository.

controllers.SessionController Maven / Gradle / Ivy

There is a newer version: 8.10.0-Beta2
Show newest version
package controllers;

import io.mangoo.routing.Response;
import io.mangoo.routing.bindings.Session;

public class SessionController {
    public Response session(Session session) {
        session.put("foo", "this is a session value");

        return Response.ok().bodyEmpty();
    }
    
    public Response valued(String uuid, Session session) {
        session.put("uuid", uuid);

        return Response.ok().bodyEmpty();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy