+ /* Remove the leading slash before mapping */
+ id = atom_id_new_from_frontend (ctx, path + 1);
+ if (id == NULL || (req = atom_id_to_backend (ctx, id)) == NULL)
+ {
+ error = atom_error_new ();
+ atom_error_code_set (error, 404);
+ atom_error_message_set (error, "Resource not found");
+ atom_error_set (ctx, error);
+ }
+ else
+ {
+ entry = atom_retrieve_entry (ctx, req);
+ }
+ if (id != NULL)
+ atom_id_delete (id);