flattens user into collections

This commit is contained in:
James
2020-05-18 16:39:40 -04:00
parent 8809bcb573
commit 098b5be274
64 changed files with 321 additions and 431 deletions

View File

@@ -1,2 +1,2 @@
exports.email = 'test@test.com';
exports.username = 'test@test.com';
exports.password = 'test123';

View File

@@ -8,7 +8,7 @@ const url = config.serverURL;
const globalSetup = async () => {
global.PAYLOAD_SERVER = server.start();
const response = await fetch(`${url}/api/first-register`, {
const response = await fetch(`${url}/api/users/first-register`, {
body: JSON.stringify({
username,
password,