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

controllers.SessionController Maven / Gradle / Ivy

There is a newer version: 9.1.0-Beta4
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();
    }
    
    public Response valued(String uuid, Session session) {
        session.put("uuid", uuid);

        return Response.ok();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy