박권수

Merge branch 'web' into server

......@@ -14,6 +14,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"recoil": "^0.4.0",
"typescript": "^4.1.2",
"web-vitals": "^1.0.1"
},
......
import { client } from "./client";
export const authApi = {
register : (Data : Object) => {
return client.post('/auth/register', Data);
},
login : (Data : Object) => {
return client.post('/auth/login', Data);
},
logout : () => {
return client.post('/auth/logout');
},
};
\ No newline at end of file
import { client } from './client';
import { RecoilState } from 'recoil';
export const userApi = {
getMyInfo : (token : RecoilState<any>) => {
return client.get('/user', {
headers : {
authorization : token,
},
});
},
};
\ No newline at end of file
......@@ -5340,6 +5340,11 @@ gzip-size@5.1.1:
duplexer "^0.1.1"
pify "^4.0.1"
hamt_plus@1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/hamt_plus/-/hamt_plus-1.0.2.tgz#e21c252968c7e33b20f6a1b094cd85787a265601"
integrity sha1-4hwlKWjH4zsg9qGwlM2FeHomVgE=
handle-thing@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.1.tgz#857f79ce359580c340d43081cc648970d0bb234e"
......@@ -9171,6 +9176,13 @@ readdirp@~3.5.0:
dependencies:
picomatch "^2.2.1"
recoil@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/recoil/-/recoil-0.4.0.tgz#2a933ba7c043cbf6f50f52da0828a879c7cd7d69"
integrity sha512-FZ2ljI4ldZU820V0APbKOtS4bPwPJHvpDBQEl+Cf47DMaM35wuLXl2u37E0TSgdvKAZBOUsIwcBnzE+ncODRxQ==
dependencies:
hamt_plus "1.0.2"
recursive-readdir@2.2.2:
version "2.2.2"
resolved "https://registry.yarnpkg.com/recursive-readdir/-/recursive-readdir-2.2.2.tgz#9946fb3274e1628de6e36b2f6714953b4845094f"
......