basic get and post for /photos