I need a defined function f[n_] satisfying
f[2]==Flatten[Table[{i, j}, {i, 1, 2}, {j, 1, 2}], 1]
f[3]==Flatten[Table[{i, j, k}, {i, 1, 2}, {j, 1, 2}, {k, 1, 2}], 2]
f[4]==Flatten[Table[{i, j, k, l}, {i, 1, 2}, {j, 1, 2}, {k, 1, 2}, {l, 1, 2}], 3]
.
.
.
etc.